diff options
-rwxr-xr-x | 1 | 4 | ||||
-rwxr-xr-x | 3 | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/1 b/1 index 9e9f413..6938bc8 100755 --- a/1 +++ b/1 @@ -5,7 +5,7 @@ PATH=/usr/bin:/usr/sbin . /etc/runit/functions -msg "Welcome to Void!\n" +msg "Welcome to Void!" [ -r /etc/rc.conf ] && . /etc/rc.conf @@ -25,4 +25,4 @@ fi mkdir -p /run/runit install -m100 /dev/null /run/runit/stopit -msg "Initialization complete, running stage 2...\n" +msg "Initialization complete, running stage 2..." diff --git a/3 b/3 index 5a0394a..c40c894 100755 --- a/3 +++ b/3 @@ -12,13 +12,13 @@ if [ -e /run/runit/reboot ]; then fi echo -msg "Waiting for services to stop...\n" +msg "Waiting for services to stop..." sv force-stop /var/service/* sv exit /var/service/* [ -x /etc/rc.shutdown ] && /etc/rc.shutdown -msg "Saving random seed...\n" +msg "Saving random seed..." ( umask 077; dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 >/dev/null 2>&1 ) if [ -z "$VIRTUALIZATION" -a -n "$HARDWARECLOCK" ]; then @@ -28,21 +28,21 @@ fi halt -w # for utmp if [ -z "$VIRTUALIZATION" ]; then - msg "Stopping udev...\n" + msg "Stopping udev..." udevadm control --exit fi -msg "Sending TERM signal to processes...\n" +msg "Sending TERM signal to processes..." pkill --inverse -s0,1 -TERM sleep 1 -msg "Sending KILL signal to processes...\n" +msg "Sending KILL signal to processes..." pkill --inverse -s0,1 -KILL if [ -z "$VIRTUALIZATION" ]; then - msg "Unmounting filesystems, disabling swap...\n" + msg "Unmounting filesystems, disabling swap..." swapoff -a umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs - msg "Remounting rootfs read-only...\n" + msg "Remounting rootfs read-only..." mount -o remount,ro / fi @@ -50,8 +50,8 @@ sync if [ -z "$VIRTUALIZATION" ]; then if [ -e /run/runit/reboot ] && command -v kexec >/dev/null; then - msg "Triggering kexec...\n" + msg "Triggering kexec..." kexec -e 2>/dev/null - # not reached when kexec was successful. + # not reached when kexec was successful. fi fi |