]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - rc.d/rc.shutdown
- added support for selecting macvlan mode
[projects/rc-scripts.git] / rc.d / rc.shutdown
index e1c4045f9ce18d7d5bc0ed7bd999da036c2c31c9..d86f962e8d6d94039069a8404a06656c26d1eb90 100755 (executable)
@@ -4,7 +4,6 @@
 #
 # Author:      Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
 #
-# $Id$
 
 # Set the path.
 PATH=/sbin:/bin:/usr/bin:/usr/sbin
@@ -20,10 +19,6 @@ IN_SHUTDOWN=yes
 trap "echo" INT SEGV QUIT TERM
 set +e
 
-emit pld.shutdown-started
-emit starting JOB=shutdown
-emit started JOB=shutdown
-
 rc_splash "reboot"
 
 # Kill all processes.
@@ -172,22 +167,18 @@ if [ "$runlevel" = "0" ] ; then
                       [ -x /sbin/poweroff-ups ] && /sbin/poweroff-ups
               fi
        fi
-       [ "$previous" != "unknown" ] && eval halt -d -p -f
+       [ "$previous" != "unknown" ] && halt -d -p -f
 else
        show "Please stand by while rebooting the $_rebootwhat"; ok
        if [ -f /fastboot ]; then
                show "On the next boot fsck will be skipped."; ok
        fi
 
-       # not really sure where thse events should go
-       emit stopped JOB=shutdown
-       emit stopping JOB=shutdown
-
        if [ -x /sbin/kexec ] && [ "$kexec_loaded" = "1" ]; then
                show "Will now restart with kexec"
                /sbin/kexec -e
                fail
        fi
 
-       [ "$previous" != "unknown" ] && eval reboot -d -f
+       [ "$previous" != "unknown" ] && reboot -d -f
 fi
This page took 0.060623 seconds and 4 git commands to generate.