about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-03-22 07:44:43 +0100
committerJuan RP <xtraeme@gmail.com>2015-03-22 07:44:43 +0100
commit47e916265c38c081f7864fb34aa21762c64ad0d8 (patch)
tree9a389ce75df1a3af524d3c8b75cfa34070e2e3cc
parent072c64d208f86934f13d1c81d3e0da91fc64ccb5 (diff)
downloadrunit-void-47e916265c38c081f7864fb34aa21762c64ad0d8.tar.gz
runit-void-47e916265c38c081f7864fb34aa21762c64ad0d8.tar.xz
runit-void-47e916265c38c081f7864fb34aa21762c64ad0d8.zip
1, 3: remove some more trailing extra newlines.
-rwxr-xr-x14
-rwxr-xr-x318
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