diff options
Diffstat (limited to 'init-sh/lib.sh')
-rw-r--r-- | init-sh/lib.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh index bf4de47..d65fa98 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -134,7 +134,8 @@ Ttylog() { LoaderUpdate() { - loader=/usr/sbin/detectloader + loader=`/usr/sbin/detectloader` + case "${loader}" in "LILO") file="/etc/lilo.conf" @@ -175,8 +176,9 @@ LoaderUpdate() { ${at_exit}; } -CleanLoaderRule() { - loader=/usr/sbin/detectloader +CleanLoaderRules() { + loader=`/usr/sbin/detectloader` + file="" case "${loader}" in "LILO") file="/etc/lilo.conf" |