diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-16 20:00:57 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-16 20:00:57 +0100 |
commit | 7de31639b85a7b4ee855bb0bfaa124ab9ee37de4 (patch) | |
tree | 0d01a9aa08281ef563809a6e7878b285ff2324cf /package/base-files/src/etc | |
parent | df3ea528e4d90a3b767b03a942011ba6ce0c81cf (diff) |
interfaces contains wpa keys, make it non-readable for the user, optimize init and shutdown
Diffstat (limited to 'package/base-files/src/etc')
-rwxr-xr-x | package/base-files/src/etc/init.d/rcK | 2 | ||||
-rw-r--r-- | package/base-files/src/etc/rc.shutdown | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/src/etc/init.d/rcK b/package/base-files/src/etc/init.d/rcK index 20c47f5db..9d0e06440 100755 --- a/package/base-files/src/etc/init.d/rcK +++ b/package/base-files/src/etc/init.d/rcK @@ -1,7 +1,6 @@ #!/bin/sh export PATH=/bin:/sbin:/usr/bin:/usr/sbin { - test -e /etc/rc.shutdown && (/bin/sh /etc/rc.shutdown) 2>&1 grep '^#INIT ' /etc/init.d/* | \ sort -rnk2 | \ while read line; do @@ -15,4 +14,5 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin esac ${shebang:-/bin/sh} ${line%%:*} autostop 2>&1 done + test -e /etc/rc.shutdown && (/bin/sh /etc/rc.shutdown) 2>&1 } | logger -s -p 6 -t '' diff --git a/package/base-files/src/etc/rc.shutdown b/package/base-files/src/etc/rc.shutdown index a5b930ad9..85d9e0058 100644 --- a/package/base-files/src/etc/rc.shutdown +++ b/package/base-files/src/etc/rc.shutdown @@ -1,4 +1,5 @@ #!/bin/sh for i in $(grep -v ^# /etc/fstab |awk '{ print $2 }');do + printf Unmounting $i umount $i done |