From ad301504d955663f0d60ee11217a5ffd3e121916 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 21 Dec 1999 22:02:12 +0000 Subject: no_comment --- init-sh/lib.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'init-sh') diff --git a/init-sh/lib.sh b/init-sh/lib.sh index d01d57f..920996f 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -47,7 +47,7 @@ AddBegRules() { echo "Modifying config in ${2}..." export VAL=$1 - perl -pi -e '/^#/ or /^$/ or $m++ or print "$ENV{COMMENT}\n$ENV{VAL}\n\n"' $2 + perl -pi -e '/^#/ or /^$/ or $m++ or print "$ENV{COMMENT}\n$ENV{VAL}\n"' $2 echo -e "done.\n" } @@ -134,7 +134,7 @@ Ttylog() { LiloUpdate() { - if [[ -z ${LILO_PASSWORD} ]]; then + if [[ ${LILO_PASSWORD+set} != set ]]; then echo "Do you want a password authentication at boot time ?" echo "Be very carefull," echo "this will prevent your server to reboot without an operator to enter password". @@ -157,7 +157,7 @@ LiloUpdate() { rm -f ${tmpfile} clear - AddRules "password=$password" /etc/lilo.conf + AddBegRules "password=$password" /etc/lilo.conf fi } -- cgit v1.2.1