diff options
author | Yoann Vandoorselaere <yoann@mandriva.com> | 1999-12-09 15:46:22 +0000 |
---|---|---|
committer | Yoann Vandoorselaere <yoann@mandriva.com> | 1999-12-09 15:46:22 +0000 |
commit | 8f1135461ee0e2621b23e75824bed3174e909d1b (patch) | |
tree | d91998a46dd7bde1c2c7e8db2d6895fe904edb64 /init-sh/lib.sh | |
parent | 15cf5616a22ee439df57846774e2f6d524a8c713 (diff) | |
download | msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.gz msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.bz2 msec-8f1135461ee0e2621b23e75824bed3174e909d1b.tar.xz msec-8f1135461ee0e2621b23e75824bed3174e909d1b.zip |
*** empty log message ***
Diffstat (limited to 'init-sh/lib.sh')
-rw-r--r-- | init-sh/lib.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh index ec14082..ec14be3 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -4,7 +4,7 @@ # # Need root access -if [ ${UID} != 0 ]; then +if [[ ${UID} != 0 ]]; then echo "You need to be root in order to change secure level." exit 1 fi @@ -54,7 +54,7 @@ CleanRules() { touch ${file} while read line; do - if [ ${ctrl} == 1 ]; then + if [[ ${ctrl} == 1 ]]; then ctrl=0 continue; fi @@ -63,7 +63,7 @@ CleanRules() { ctrl=1 fi - if [ ${ctrl} == 0 ]; then + if [[ ${ctrl} == 0 ]]; then echo "${line}" >> ${file} fi done < /tmp/secure.tmp @@ -96,13 +96,13 @@ CommentUserRules() { } Syslog() { - if [ "${SYSLOG_WARN}" == "yes" ]; then + if [[ ${SYSLOG_WARN} == yes ]]; then /sbin/initlog --string=${1} fi } Ttylog() { - if [ "${TTY_WARN}" == "yes" ]; then + if [[ ${TTY_WARN} == yes ]]; then w | grep -v "load\|TTY" | awk '{print $2}' | while read line; do echo -e ${1} > /dev/$i done @@ -116,7 +116,7 @@ LiloUpdate() { echo "Be very carefull," echo "this will prevent your server to reboot without an operator to enter password". WaitAnswer; - if [ "${answer}" == "yes" ]; then + if [[ ${answer} == yes ]]; then echo -n "Please enter the password which will be used at boot time : " read password else |