svn path=/nixos/branches/upstart-0.6/; revision=18229

This commit is contained in:
Eelco Dolstra 2009-11-06 21:51:28 +00:00
parent a60d83d3b4
commit 6b0842ff52
3 changed files with 9 additions and 6 deletions

View file

@ -39,7 +39,7 @@ trap 'fail' ERR
# Print a greeting.
echo
echo "<<< NixOS Stage 1 >>>"
echo "<<< NixOS Stage 1 >>>"
echo

View file

@ -5,7 +5,7 @@
# Print a greeting.
echo
echo "<<< NixOS Stage 2 >>>"
echo -e "\e[1;32m<<< NixOS Stage 2 >>>\e[0m"
echo

View file

@ -19,7 +19,11 @@ with pkgs.lib;
exec < /dev/console > /dev/console 2>&1
echo ""
echo "<<< SYSTEM SHUTDOWN >>>"
if test "$MODE" = maintenance; then
echo "<<< Entering maintenance mode >>>"
else
echo "<<< System shutdown >>>"
fi
echo ""
export PATH=${pkgs.utillinux}/bin:${pkgs.utillinux}/sbin:$PATH
@ -58,7 +62,7 @@ with pkgs.lib;
# back up.
if test "$MODE" = maintenance; then
echo ""
echo "<<< MAINTENANCE SHELL >>>"
echo "<<< Maintenance shell >>>"
echo ""
while ! ${pkgs.bash}/bin/bash --login; do true; done
initctl emit -n startup
@ -121,8 +125,7 @@ with pkgs.lib;
sync
# Either reboot or power-off the system. Note that the "halt"
# event also does a power-off.
# Either reboot or power-off the system.
if test "$MODE" = reboot; then
echo "rebooting..."
sleep 1