diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2005-05-25 06:59:10 +0000 |
---|---|---|
committer | John Bowler <jbowler@nslu2-linux.org> | 2005-05-25 06:59:10 +0000 |
commit | 7e21c43a4a6405132c81a81d9f6af07b24cd9f27 (patch) | |
tree | 009bd788aa959ba76ee0fb90b3ba1b29c5e78972 /packages/openslug-init/openslug-init-0.10/sysconfsetup | |
parent | ba992a6143d7031b51a6ec76b91b46a6af88e0e8 (diff) |
Minor fixes to sysconfsetup (which failed on systems using
udev for /dev) and devio (which failed on write if it had
to write more than one buffer.)
BKrev: 4294223e3XWI1bkqAgS1GviX6o-TAw
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10/sysconfsetup')
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/sysconfsetup | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/sysconfsetup b/packages/openslug-init/openslug-init-0.10/sysconfsetup index 4ed4e10162..8d2ecdca09 100644 --- a/packages/openslug-init/openslug-init-0.10/sysconfsetup +++ b/packages/openslug-init/openslug-init-0.10/sysconfsetup @@ -39,8 +39,11 @@ echodns(){ # # It is important not to hard-wire the name of the device because of # the posibility of changing the flash partition layout. -sysdev="$(mtdev SysConf)" -if test -n "$sysdev" -a -c "$sysdev" +# +# The block device is used here because at present udev does not +# show the character devices +sysdev="$(mtblockdev SysConf)" +if test -n "$sysdev" -a -b "$sysdev" then # Read the defined part of SysConf into /etc/default/sysconf. # SysConf has lines of two forms: |