summaryrefslogtreecommitdiff
path: root/packages/openslug-init/openslug-init-0.10/sysconfsetup
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10/sysconfsetup')
-rw-r--r--packages/openslug-init/openslug-init-0.10/sysconfsetup7
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: