<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=6079&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6079</link>
		<description><![CDATA[The most recent posts in [SOLVED] allow-hotplug not working properly on ifupdown.]]></description>
		<lastBuildDate>Wed, 22 Nov 2023 23:05:04 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45579#p45579</link>
			<description><![CDATA[<div class="quotebox"><cite>tf wrote:</cite><blockquote><div><p>This config is designed to specifically work with IWD. It should work like the original script if you are using ethernet (I made it detect if the interface is wireless or not.)</p></div></blockquote></div><p>Needless to say that with the default script it doesn&#039;t work either.</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Wed, 22 Nov 2023 23:05:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45579#p45579</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45569#p45569</link>
			<description><![CDATA[<p>Thanks <em>Amnesiac</em>. Damn good point. I was attempting to find some humour in my post &amp; failed completely.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Wed, 22 Nov 2023 18:39:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45569#p45569</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45562#p45562</link>
			<description><![CDATA[<div class="quotebox"><cite>alexkemp wrote:</cite><blockquote><div><p>Please, please STOP FULL-POST QUOTING. Thank you.</p></div></blockquote></div><p>The Kempster, </p><p>It would probably help if you pointed to <a href="https://dev1galaxy.org/viewtopic.php?pid=31854#p31854" rel="nofollow">THIS POST</a> so that you don&#039;t come off as so offensive when (cough-cough) <strong><em>requesting</em></strong> for people to <em><strong>please</strong></em> STOP FULL POST QUOTING...by explaining that an administrator has requested the same...instead of coming across as an angry man with an agenda of his own.</p>]]></description>
			<author><![CDATA[dummy@example.com (The-Amnesiac-Philosopher)]]></author>
			<pubDate>Wed, 22 Nov 2023 17:47:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45562#p45562</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45561#p45561</link>
			<description><![CDATA[<p>Please, please STOP FULL-POST QUOTING. Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (alexkemp)]]></author>
			<pubDate>Wed, 22 Nov 2023 16:12:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45561#p45561</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45553#p45553</link>
			<description><![CDATA[<div class="quotebox"><cite>Danielsan wrote:</cite><blockquote><div><div class="quotebox"><cite>tf wrote:</cite><blockquote><div><p>Are you using IWD?</p></div></blockquote></div><p>Hi,<br />I don&#039;t use IWD only <span class="bbc">interfaces</span> config file.</p><div class="quotebox"><blockquote><div><p>Did you remove allow-hotplug?</p></div></blockquote></div><p>Both <span class="bbc">auto</span> and <span class="bbc">allow-hotplug</span>, should I restore <span class="bbc">auto</span> instead?</p><div class="quotebox"><blockquote><div><p>Did you make sure not to use IWD&#039;s built-in DHCP client?</p></div></blockquote></div><p>IWD is not installed!</p><div class="quotebox"><blockquote><div><p>Did you modify /etc/netplug/netplug?</p></div></blockquote></div><p>Yes I did, using the configuration you shared!</p><p>I don&#039;t actually need the wifi I need it for the eth0, but I guess that if doesn&#039;t work is the same for the others, isn&#039;t it?</p><p>Thanks!</p></div></blockquote></div><p>This config is designed to specifically work with IWD. It should work like the original script if you are using ethernet (I made it detect if the interface is wireless or not.)</p>]]></description>
			<author><![CDATA[dummy@example.com (tf)]]></author>
			<pubDate>Wed, 22 Nov 2023 11:13:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45553#p45553</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45551#p45551</link>
			<description><![CDATA[<div class="quotebox"><cite>tf wrote:</cite><blockquote><div><p>Are you using IWD?</p></div></blockquote></div><p>Hi,<br />I don&#039;t use IWD only <span class="bbc">interfaces</span> config file.</p><div class="quotebox"><blockquote><div><p>Did you remove allow-hotplug?</p></div></blockquote></div><p>Both <span class="bbc">auto</span> and <span class="bbc">allow-hotplug</span>, should I restore <span class="bbc">auto</span> instead?</p><div class="quotebox"><blockquote><div><p>Did you make sure not to use IWD&#039;s built-in DHCP client?</p></div></blockquote></div><p>IWD is not installed!</p><div class="quotebox"><blockquote><div><p>Did you modify /etc/netplug/netplug?</p></div></blockquote></div><p>Yes I did, using the configuration you shared!</p><p>I don&#039;t actually need the wifi I need it for the eth0, but I guess that if doesn&#039;t work is the same for the others, isn&#039;t it?</p><p>Thanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Wed, 22 Nov 2023 03:30:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45551#p45551</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45178#p45178</link>
			<description><![CDATA[<div class="quotebox"><cite>Danielsan wrote:</cite><blockquote><div><p>Did you customize the default script?</p><p>My WiFi dongle is stuck in a endless loop with your script...</p></div></blockquote></div><p>Are you using IWD?<br />Did you remove allow-hotplug?<br />Did you make sure not to use IWD&#039;s built-in DHCP client?</p><p>Did you modify /etc/netplug/netplug?</p>]]></description>
			<author><![CDATA[dummy@example.com (tf)]]></author>
			<pubDate>Tue, 31 Oct 2023 19:51:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45178#p45178</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45082#p45082</link>
			<description><![CDATA[<p>Did you customize the default script?</p><p>My WiFi dongle is stuck in a endless loop with your script...</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Wed, 25 Oct 2023 03:44:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45082#p45082</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45036#p45036</link>
			<description><![CDATA[<p>Thank you!</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Mon, 23 Oct 2023 16:06:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45036#p45036</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45025#p45025</link>
			<description><![CDATA[<div class="quotebox"><cite>Danielsan wrote:</cite><blockquote><div><div class="quotebox"><cite>tf wrote:</cite><blockquote><div><p>I fixed this by using ifplugd and not using ifupdown&#039;s built-in allow-hotplug.</p></div></blockquote></div><p>Can you explain a little bit better what you did?</p><p>Thanks!</p></div></blockquote></div><p>Remove all allow-hotplug and auto lines (except for lo) from /etc/network/interfaces, like this:</p><div class="codebox"><pre><code>source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet dhcp

iface usb0 inet dhcp

iface wlan0 inet dhcp</code></pre></div><p>Replace /etc/netplug/netplug with all of this:</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh
#
# netplug - policy agent for netplugd
#
# Copyright 2003 Key Research, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2, as
# published by the Free Software Foundation.  You are forbidden from
# redistributing or modifying it under the terms of any other license,
# including other versions of the GNU General Public License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.

PATH=/usr/bin:/bin:/usr/sbin:/sbin
export PATH

dev=&quot;$1&quot;
action=&quot;$2&quot;

case &quot;$action&quot; in
in)
    if [ -x /sbin/ifup ]; then
        exec /sbin/ifup &quot;$dev&quot;
    else
        echo &quot;Please teach me how to plug in an interface!&quot; 1&gt;&amp;2
        exit 1
    fi
    ;;
out)
    if [ -x /sbin/ifdown ]; then
        # At least on Fedora Core 1, the call to ip addr flush infloops
        # /sbin/ifdown $dev &amp;&amp; exec /sbin/ip addr flush $dev
        if ! [ -d &quot;/sys/class/net/$dev/wireless&quot; ]; then
                exec /sbin/ifdown &quot;$dev&quot;
        else
                # Do the same thing as ifdown (kill dhcp process, etc.) without putting the interface down
                # Putting the interface fully down will break IWD.
                eval &quot;$(ifdown -n -f &quot;$dev&quot; 2&gt;&amp;1 | tail -n +2 | tac | tail -n +4 | tac | tr &#039;\n&#039; &#039;;&#039; | head -c -1)&quot; &amp;&amp; \
                echo &gt; &quot;/var/run/network/ifstate.$dev&quot;
        fi
    else
        echo &quot;Please teach me how to unplug an interface!&quot; 1&gt;&amp;2
        exit 1
    fi
    ;;
probe)
    exec test -d &quot;/sys/class/net/$dev&quot; &gt;/dev/null 2&gt;&amp;1
    ;;
*)
    echo &quot;I have been called with a funny action of &#039;$action&#039;!&quot; 1&gt;&amp;2
    exit 1
    ;;
esac</code></pre></div><p>And replace /etc/netplug/netplugd.conf with this:</p><div class="codebox"><pre><code>eth*
wlan*
usb*</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (tf)]]></author>
			<pubDate>Mon, 23 Oct 2023 14:05:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45025#p45025</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45015#p45015</link>
			<description><![CDATA[<div class="quotebox"><cite>tf wrote:</cite><blockquote><div><p>I fixed this by using ifplugd and not using ifupdown&#039;s built-in allow-hotplug.</p></div></blockquote></div><p>Can you explain a little bit better what you did?</p><p>Thanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Mon, 23 Oct 2023 05:22:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45015#p45015</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45014#p45014</link>
			<description><![CDATA[<p>Thank you!</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Mon, 23 Oct 2023 05:09:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45014#p45014</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45002#p45002</link>
			<description><![CDATA[<p>Replaced ifplugd with netplugd, also works.</p>]]></description>
			<author><![CDATA[dummy@example.com (tf)]]></author>
			<pubDate>Sun, 22 Oct 2023 13:56:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45002#p45002</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44982#p44982</link>
			<description><![CDATA[<div class="quotebox"><cite>Danielsan wrote:</cite><blockquote><div><div class="quotebox"><cite>tf wrote:</cite><blockquote><div><p>I fixed this by using ifplugd and not using ifupdown&#039;s built-in allow-hotplug.</p></div></blockquote></div><p>Did you read where <span class="bbc">ifplugd</span> come from?</p><div class="codebox"><pre><code>apt show ifplugd
Package: ifplugd
Version: 0.28-19.5
Priority: optional
Section: net
Maintainer: Walter Franzini &lt;walter.franzini@gmail.com&gt;
Installed-Size: 222 kB
Depends: libc6 (&gt;= 2.15), libdaemon0 (&gt;= 0.10), debconf (&gt;= 0.5) | debconf-2.0, lsb-base (&gt;= 3.0-6)
Recommends: ifupdown (&gt;= 0.6.4-4.2)
Suggests: wpasupplicant
Homepage: http://0pointer.de/lennart/projects/ifplugd/
Tag: hardware::laptop, implemented-in::c, interface::daemon,
 network::configuration, protocol::ethernet, role::program,
 scope::application, use::configuring, use::monitor
Download-Size: 65.5 kB
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
Description: configuration daemon for ethernet devices</code></pre></div><p>😱</p></div></blockquote></div><p>Ifplugd was the only workaround to my problem that I found that didn&#039;t involve using NetworkManager.</p>]]></description>
			<author><![CDATA[dummy@example.com (tf)]]></author>
			<pubDate>Sat, 21 Oct 2023 15:18:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44982#p44982</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] allow-hotplug not working properly on ifupdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44981#p44981</link>
			<description><![CDATA[<div class="quotebox"><cite>tf wrote:</cite><blockquote><div><p>I fixed this by using ifplugd and not using ifupdown&#039;s built-in allow-hotplug.</p></div></blockquote></div><p>Did you read where <span class="bbc">ifplugd</span> come from?</p><div class="codebox"><pre><code>apt show ifplugd
Package: ifplugd
Version: 0.28-19.5
Priority: optional
Section: net
Maintainer: Walter Franzini &lt;walter.franzini@gmail.com&gt;
Installed-Size: 222 kB
Depends: libc6 (&gt;= 2.15), libdaemon0 (&gt;= 0.10), debconf (&gt;= 0.5) | debconf-2.0, lsb-base (&gt;= 3.0-6)
Recommends: ifupdown (&gt;= 0.6.4-4.2)
Suggests: wpasupplicant
Homepage: http://0pointer.de/lennart/projects/ifplugd/
Tag: hardware::laptop, implemented-in::c, interface::daemon,
 network::configuration, protocol::ethernet, role::program,
 scope::application, use::configuring, use::monitor
Download-Size: 65.5 kB
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
Description: configuration daemon for ethernet devices</code></pre></div><p>😱</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Sat, 21 Oct 2023 14:58:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44981#p44981</guid>
		</item>
	</channel>
</rss>
