From d89237613742418c4671428fbe58a35c38be0ed4 Mon Sep 17 00:00:00 2001 From: Yoann Vandoorselaere Date: Mon, 20 Dec 1999 18:04:02 +0000 Subject: *** empty log message *** --- init-sh/lib.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'init-sh') diff --git a/init-sh/lib.sh b/init-sh/lib.sh index 2ad821f..d01d57f 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -152,12 +152,8 @@ LiloUpdate() { if [[ ! -z ${password} ]]; then tmpfile=`mktemp /tmp/secure.XXXXXX` - cp -f /etc/lilo.conf ${tmpfile} - while read line; do - if ! echo "${line}" | grep -q "password"; then - echo "${line}" > /etc/lilo.conf - fi - done < ${tmpfile} + cp /etc/lilo.conf ${tmpfile} + cat ${tmpfile} | grep -v password > /etc/lilo.conf rm -f ${tmpfile} clear -- cgit v1.2.1