aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-21 22:02:12 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-21 22:02:12 +0000
commitad301504d955663f0d60ee11217a5ffd3e121916 (patch)
tree698f7a0e15a571ce1daf84aa8e8f67f2573fdb22 /init-sh
parent2fbbdd02fb49ce0e92ecb8bd658ed301ebe185aa (diff)
downloadmsec-ad301504d955663f0d60ee11217a5ffd3e121916.tar
msec-ad301504d955663f0d60ee11217a5ffd3e121916.tar.gz
msec-ad301504d955663f0d60ee11217a5ffd3e121916.tar.bz2
msec-ad301504d955663f0d60ee11217a5ffd3e121916.tar.xz
msec-ad301504d955663f0d60ee11217a5ffd3e121916.zip
no_comment
Diffstat (limited to 'init-sh')
-rw-r--r--init-sh/lib.sh6
1 files changed, 3 insertions, 3 deletions
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
}