From: Michael Tremer Date: Sat, 22 Aug 2009 12:38:50 +0000 (+0200) Subject: upstart: Make shutdown/reboot comfortable. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b52ddedc4a8da37cf1603b6e86b10282b98ea0e2;p=ipfire-3.x.git upstart: Make shutdown/reboot comfortable. --- diff --git a/lfs/upstart b/lfs/upstart index 6f2392ed0..2219a0cc7 100644 --- a/lfs/upstart +++ b/lfs/upstart @@ -105,5 +105,9 @@ $(OBJECT): $(objects) rm -vf /etc/init/rc.conf rm -vf /etc/init/rcS.conf + # Make shutdown/reboot comfortable. + -mkdir -pv /etc/profile.d + cp -vf $(DIR_SOURCE)/profile.d/upstart.conf /etc/profile.d + @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/src/profile.d/upstart.sh b/src/profile.d/upstart.sh new file mode 100644 index 000000000..73c71a094 --- /dev/null +++ b/src/profile.d/upstart.sh @@ -0,0 +1,6 @@ +# Some nice upstart hooks + +alias halt="initctl emit --no-wait shutdown" +alias poweroff="initctl emit --no-wait shutdown" +alias reboot="initctl emit --no-wait reboot" +alias shutdown="initctl emit --no-wait shutdown"