fs

morpheus filesystem files
git clone git://git.2f30.org/fs.git
Log | Files | Refs

commit 4e36011a633519892dc2c361c3219671c59fa3b0
parent 946130bb6803fefd2a65a8fd3beaef24f54a46bd
Author: sin <sin@2f30.org>
Date:   Mon Feb 17 12:43:12 +0000

Check if rc.svc and rc.local are executable and only then run them

Diffstat:
bin/rc.init | 6++++--
bin/rc.svc | 6++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/bin/rc.init b/bin/rc.init @@ -60,5 +60,7 @@ dd if=/dev/urandom of=/etc/random-seed count=1 bs=512 2>/dev/null dmesg > /var/log/dmesg.log -echo Running rc.svc -/bin/rc.svc +if [ -x /bin/rc.svc ]; then + echo Running rc.svc + /bin/rc.svc +fi diff --git a/bin/rc.svc b/bin/rc.svc @@ -5,7 +5,9 @@ svc -c svc -s -echo Running rc.local -[ -x /bin/rc.local ] && /bin/rc.local +if [ -x /bin/rc.local ]; then + echo Running rc.local + /bin/rc.local +fi exec sh -c 'while :; do echo; getty /dev/tty1 linux; done'