Rework locale handling
[live-boot-grml.git] / scripts / live-helpers
index e1f69dd..fdf7b38 100644 (file)
@@ -33,6 +33,12 @@ is_supported_fs ()
 {
        fstype="${1}"
 
+       # Validate input first
+       if [ -z "${fstype}" ]
+       then
+               return 1
+       fi
+
        # Try to look if it is already supported by the kernel
        if grep -q ${fstype} /proc/filesystems
        then
@@ -184,7 +190,15 @@ setup_loop ()
        local readonly=${6}
 
        modprobe -q -b "${module}"
-       udevsettle
+
+       if [ -x /sbin/udevadm ]
+       then
+               # lenny
+               udevadm settle
+       else
+               # etch
+               udevsettle
+       fi
 
        for loopdev in ${pattern}
        do