<?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=6943&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Disable a NIC at boot.]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6943</link>
		<description><![CDATA[The most recent posts in Disable a NIC at boot..]]></description>
		<lastBuildDate>Tue, 03 Dec 2024 01:26:00 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53222#p53222</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>no! Don&#039;t destroy the loopback interface configuration!</p></div></blockquote></div><p>Glad you posted. I assume you mean removing &#039;lo&#039; from the auto line destroys the loopback interface, even with &#039;loopback&#039; in the iface line. </p><p>@SpongeBOB: forget my previous post.</p>]]></description>
			<author><![CDATA[dummy@example.com (fanderal)]]></author>
			<pubDate>Tue, 03 Dec 2024 01:26:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53222#p53222</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53219#p53219</link>
			<description><![CDATA[<p>no! Don&#039;t destroy the loopback interface configuration!</p><p>Use &quot;man interfaces&quot;</p><p>EDIT. Btw the kernel will install an adapter for the wireless card if it has the software to do so. You may use &quot;rfkill&quot; to software-block the adapter, and then no networking will be configured for it. However, you will need that &quot;rfkill&quot; to happen early on, so will probably need to add it into initrd&#039;s init scripts. And that is a second cloud of knowledge to gain, perhaps starting with &quot;man initramfs-tools&quot;.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 02 Dec 2024 22:31:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53219#p53219</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53217#p53217</link>
			<description><![CDATA[<div class="quotebox"><cite>SpongeBOB wrote:</cite><blockquote><div><p>I&#039;ve set ifdown wlan0 into /etc/rc.local but...</p></div></blockquote></div><p>My error. What follows &#039;iface&#039; in the interfaces file declares the interfaces for the system. The interfaces file is what ifup/down uses when invoked. My suggestion didn&#039;t work because wlan0 isn&#039;t in the interfaces file. Assuming you tried <span class="bbc">ifconfig wlan0 down</span> in rc.local, it may have failed for the same reason.</p><p>New suggestion:<br />Re-edit any changes you made and return them to system defaults. <br />Disable (for now) the init script you created. </p><p>What follows &#039;auto&#039; in the interfaces file identifies the interface to be brought up at boot. &#039;lo&#039; is like a virtual loopback device to access your local network. </p><p>Edit /etc/network/interfaces from this:</p><div class="codebox"><pre><code>auto lo
iface lo inet loopback</code></pre></div><p>to this:</p><div class="codebox"><pre><code>auto wlan0
iface wlan0 inet loopback</code></pre></div><p>This interfaces edit tells the system to enable wlan0 at boot. The &#039;switch&#039; to disable wlan0 is rc.local. After the interfaces edit, test again with <span class="bbc">ifdown wlan0</span> or <span class="bbc">/etc/init.d/networking stop</span> in rc.local. </p><p>I don&#039;t know if adding dhcp to the iface line will help or hinder a wireless interface. Maybe someone who knows can help?</p>]]></description>
			<author><![CDATA[dummy@example.com (fanderal)]]></author>
			<pubDate>Mon, 02 Dec 2024 21:51:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53217#p53217</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53206#p53206</link>
			<description><![CDATA[<div class="quotebox"><cite>stargate-sg1-cheyenne-mtn wrote:</cite><blockquote><div><p>/etc/default/networking ... CONFIGURE_INTERFACES=yes is commented out</p></div></blockquote></div><p>Thank you Cheyenne, Should I&#160; un comment it ? in order for <span class="bbc">ifconfig</span> or <span class="bbc">ifdown</span>to work at boot ?</p><p>-</p><p>Thanks <a href="https://dev1galaxy.org/profile.php?id=4532" rel="nofollow">fanderal</a></p><p>I&#039;ve set <span class="bbc">ifdown wlan0</span> into <strong>/etc/rc.local</strong> but i got ~</p><div class="quotebox"><cite>boot terminal wrote:</cite><blockquote><div><p>ifdown: unknow interface wlan0<br />startpar: service(s) returned failure: rc.local ... failed!</p></div></blockquote></div><p>it&#039;s weird because when i use <span class="bbc">ifconfig wlan0 down</span> it&#039;s not generating an error, it&#039;s just not applied...</p><div class="quotebox"><cite>fanderal wrote:</cite><blockquote><div><p>Is there a reason your /etc/network/interfaces doesn&#039;t include wlan0 and/or dhcp?</p></div></blockquote></div><p>no ideas, I didn&#039;t touch for sure. anyway I&#039;ll try now with a stock devuan4 install to see what it does.</p><p>edit: with a fresh install, it trow the same error.</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Mon, 02 Dec 2024 07:42:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53206#p53206</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53141#p53141</link>
			<description><![CDATA[<p>I don&#039;t use this mobo&#039;s wifi so I tried my suggestion for eth1: I put <span class="bbc">ifdown eth1</span> and then <span class="bbc">/etc/init.d/networking stop</span> in /etc/rc.local, rebooting after each edit. Although the boot process stalled for ~15 seconds (trying to bring up the network), there was no connection at the desktop. In each instance at the desktop, issuing the opposite cmd brought up the network. </p><p>Is there a reason your /etc/network/interfaces doesn&#039;t include wlan0 and/or dhcp?</p><p>My interfaces file:<br />auto eth1<br />iface eth1 inet dhcp</p>]]></description>
			<author><![CDATA[dummy@example.com (fanderal)]]></author>
			<pubDate>Thu, 28 Nov 2024 18:22:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53141#p53141</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53140#p53140</link>
			<description><![CDATA[<p>Huh, well I learn new things all the time, but have never seen a laptop myself that didn&#039;t have a wi-fi key. On the oldest one I have it&#039;s literally a small switch on the laptop body.</p><p>As I said, on 2 of 3 laptops we have, it&#039;s the F12 key, below the little f12 designation there&#039;s a little symbol of an antenna, and the key has an embedded LED that lights up white when wi-fi is on, and orange when it is not. And whatever you chose in the last session persists to the next.</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Thu, 28 Nov 2024 17:55:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53140#p53140</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53138#p53138</link>
			<description><![CDATA[<p>you might take a closer look at /etc/default/networking(on our daedalus the CONFIGURE_INTERFACES=yes is commented out)</p><div class="codebox"><pre class="vscroll"><code># Configuration for networking init script being run during
# the boot sequence

# Set to &#039;no&#039; to skip interfaces configuration on boot
#CONFIGURE_INTERFACES=yes

# Don&#039;t configure these interfaces. Shell wildcards supported/
#EXCLUDE_INTERFACES=

# Set to &#039;yes&#039; to enable additional verbosity
#VERBOSE=no

# Method to wait for the network to become online,
# for services that depend on a working network:
# - ifup: wait for ifup to have configured an interface.
# - route: wait for a route to a given address to appear.
# - ping/ping6: wait for a host to respond to ping packets.
# - none: don&#039;t wait.
#WAIT_ONLINE_METHOD=ifup

# Which interface to wait for.
# If none given, wait for all auto interfaces, or if there are none,
# wait for at least one hotplug interface.
#WAIT_ONLINE_IFACE=

# Which address to wait for for route, ping and ping6 methods.
# If none is given for route, it waits for a default gateway.
#WAIT_ONLINE_ADDRESS=

# Timeout in seconds for waiting for the network to come online.
#WAIT_ONLINE_TIMEOUT=300</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (stargate-sg1-cheyenne-mtn)]]></author>
			<pubDate>Thu, 28 Nov 2024 16:08:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53138#p53138</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53136#p53136</link>
			<description><![CDATA[<p>update</p><p>I&#039;ve just tried in <span class="bbc">/etc/init.d/networking</span></p><div class="codebox"><pre><code>EXCLUDE_INTERFACES=wlan0</code></pre></div><p>but it&#039;s not working... the NIC is still up...</p><p>same with <span class="bbc">/etc/rc.local</span></p><div class="codebox"><pre><code>ifconfig wlan0 down</code></pre></div><p>:&#039;(</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Thu, 28 Nov 2024 11:42:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53136#p53136</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53135#p53135</link>
			<description><![CDATA[<p>@<a href="https://dev1galaxy.org/profile.php?id=4683" rel="nofollow">greenjeans</a><br />Thanks, but I don&#039;t have an hardware switch to shutdown disable the WiFi.<br />Another way it&#039;s to disable it in the BIOS/UEFI <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> (I&#039;ll try on my in a couple of hours)</p><p>@<a href="https://dev1galaxy.org/profile.php?id=4532" rel="nofollow">fanderal</a><br />Thanks, I believe you meant: <span class="bbc">/etc/network/interfaces</span> <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>in that file I got (I didn&#039;t modify it)</p><div class="codebox"><pre><code>auto lo
iface lo inet loopback</code></pre></div><p>indeed I see in <span class="bbc">/etc/init.d/networking</span></p><div class="codebox"><pre><code>CONFIGURE_INTERFACES=yes
EXCLUDE_INTERFACES=</code></pre></div><p>If I set CONFIGURE_INTERFACES to no I assum it will affect all the interface<br />Maybe I can use just EXCLUDE_INTERFACES ? <span class="bbc">EXCLUDE_INTERFACES=wlan0</span> ?</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Thu, 28 Nov 2024 11:36:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53135#p53135</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53125#p53125</link>
			<description><![CDATA[<p>Don&#039;t know if you&#039;ve made any edits but interfaces marked &quot;auto&quot; or &quot;allow-&quot; in /etc/networking/interfaces are brought up at boot. And /etc/init.d/networking and /etc/default/networking have the line <span class="bbc">CONFIGURE_INTERFACES=yes</span> as default.</p><p>If no laptop switch (fine suggestion greenjeans!), try setting your init script to load last. Another option is /etc/rc.local. Any cmds there are executed after all the normal system services are started and before login.</p>]]></description>
			<author><![CDATA[dummy@example.com (fanderal)]]></author>
			<pubDate>Wed, 27 Nov 2024 21:35:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53125#p53125</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53120#p53120</link>
			<description><![CDATA[<p>On my laptop, there is a switch to turn wi-fi on and off (f12), once turned off it persists through re-boots, and ifconfig confirms that it indeed disabled.</p><p>If you right click on the Network Manager icon in the tray, there is an option to enable wi-fi if not running, and disable if running.</p><p>Left-clicking that icon confirms also that wi-fi is disabled.</p><p>This all persists through re-boots, easy-peasy. Hope this helps!</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Wed, 27 Nov 2024 18:45:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53120#p53120</guid>
		</item>
		<item>
			<title><![CDATA[Disable a NIC at boot.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53106#p53106</link>
			<description><![CDATA[<p>Hi,</p><p>I would like to disable a <a href="https://en.wikipedia.org/wiki/Network_interface_controller" rel="nofollow">NIC</a> a boot.</p><p>I&#039;ve created an init script </p><div class="codebox"><pre><code>#!/bin/sh
### BEGIN INIT INFO
# Provides:          disable_WiFi
# Required-Start:    $network $local_fs
# Required-Stop:     $network $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Disable WiFi and BlueTooth
### END INIT INFO

case &quot;$1&quot; in
  start)
    echo &quot;Disabling WiFi &amp; BlueTooth&quot;
    ifconfig wlan0 down
    ;;
  stop)
    echo &quot;WiBT will not be reactived&quot;
    ;;
  *)
    echo &quot;Usage: $0 {start|stop}&quot;
    exit 1
esac

exit 0</code></pre></div><p>But after reboot and login <span class="bbc">ifconfig</span> still show the interface :&#039;(</p><p>Any ideas ?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Wed, 27 Nov 2024 17:04:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53106#p53106</guid>
		</item>
	</channel>
</rss>
