[Pkg-sysvinit-commits] r950 - in sysvinit/trunk/debian: . initscripts/etc/init.d

Petter Reinholdtsen pere at costa.debian.org
Fri Sep 22 13:50:27 UTC 2006


Author: pere
Date: 2006-09-22 13:50:25 +0000 (Fri, 22 Sep 2006)
New Revision: 950

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/etc/init.d/halt
Log:
  * Add new halt option NETDOWN to make it easier to enable
    wake-on-lan. (Closes: #388244)

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2006-09-22 13:36:21 UTC (rev 949)
+++ sysvinit/trunk/debian/changelog	2006-09-22 13:50:25 UTC (rev 950)
@@ -12,6 +12,8 @@
     writable area very early in the boot.  Use this in checkroot.sh if
     a device node need to be created.
   * Move sulogin to the sysvinit-utils package as well. (Closes: #388417)
+  * Add new halt option NETDOWN to make it easier to enable
+    wake-on-lan. (Closes: #388244)
 
  -- Petter Reinholdtsen <pere at localhost>  Tue, 19 Sep 2006 16:24:48 +0200
 

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/halt
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/halt	2006-09-22 13:36:21 UTC (rev 949)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/halt	2006-09-22 13:50:25 UTC (rev 950)
@@ -11,6 +11,8 @@
 # Description:
 ### END INIT INFO
 
+NETDOWN=yes
+
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 [ -f /etc/default/halt ] && . /etc/default/halt
 
@@ -52,9 +54,16 @@
 		poweroff=""
 	fi
 
+	# Make it possible to not shut down network interfaces,
+	# needed to use wake-on-lan
+	netdown="-i"
+	if [ "$NETDOWN" = "no" ]; then
+		netdown=""
+	fi
+
 	log_action_msg "Will now halt"
 	sleep 1
-	halt -d -f -i $poweroff $hddown
+	halt -d -f $netdown $poweroff $hddown
 }
 
 case "$1" in




More information about the Pkg-sysvinit-commits mailing list