From 8f1135461ee0e2621b23e75824bed3174e909d1b Mon Sep 17 00:00:00 2001 From: Yoann Vandoorselaere Date: Thu, 9 Dec 1999 15:46:22 +0000 Subject: *** empty log message *** --- init-sh/lib.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'init-sh/lib.sh') 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 -- cgit v1.2.1