summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/sysconf
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2009-02-08 17:48:18 -0600
committerMike Westerhof <mwester@dls.net>2009-02-08 17:48:18 -0600
commit7f4149db1ab21d402bd448431a57e31dddfc578d (patch)
tree1fb7c8ad4ad5fe8e69b0a1e2749cbde9868d4607 /packages/slugos-init/files/sysconf
parent02b7e571e534d1b3e67fdfb941477174afb92393 (diff)
SlugOS: /sbin/sysconf - accomodate bugs in recent busybox ash, fix a few typos
(ash can no longer handle: command <>/dev/tty >&0 -- fails with "Bad file descriptor" error.)
Diffstat (limited to 'packages/slugos-init/files/sysconf')
-rw-r--r--packages/slugos-init/files/sysconf8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/slugos-init/files/sysconf b/packages/slugos-init/files/sysconf
index 3059a466da..8d59d5d6f3 100644
--- a/packages/slugos-init/files/sysconf
+++ b/packages/slugos-init/files/sysconf
@@ -381,7 +381,7 @@ sysconf_restore_conffiles(){
else
echo "sysconf_restore_conffiles: $file: timestamp copy failed (ignored)" >&2
fi
- elif test -h "$saved/file" -o -h "$ffsdir/$file"
+ elif test -h "$saved/$file" -o -h "$ffsdir/$file"
then
# new or old symbolic link
if test -h "$saved/$file" -a -h "$ffsdir/$file" &&
@@ -396,7 +396,7 @@ sysconf_restore_conffiles(){
echo "$file"
echo "$file" >&3;;
diff) # need user input
- if sysconf_verify_link "$file" <>/dev/tty >&0 2>&0
+ if sysconf_verify_link "$file" </dev/tty >/dev/tty 2>&1
then
echo "$file"
echo "$file" >&3
@@ -420,7 +420,7 @@ sysconf_restore_conffiles(){
echo "$file"
echo "$file" >&3;;
diff) # the files are different, get user input
- if sysconf_verify "$file" <>/dev/tty >&0 2>&0
+ if sysconf_verify "$file" </dev/tty >/dev/tty 2>&1
then
echo "$file"
echo "$file" >&3
@@ -456,7 +456,7 @@ sysconf_test_restore(){
elif test "$file" = "etc/.configured"
then
: # special handling
- elif test -h "$saved/file" -o -h "$ffsdir/$file"
+ elif test -h "$saved/$file" -o -h "$ffsdir/$file"
then
# new or old symbolic link
if test -h "$saved/$file" -a -h "$ffsdir/$file" &&