Quote $DCSMP to check if DCSMP was mounted. Thanks to K. Wulff for the
authorUlrich Dangel <mru@grml.org>
Mon, 18 Apr 2011 19:44:43 +0000 (21:44 +0200)
committerUlrich Dangel <mru@grml.org>
Mon, 18 Apr 2011 19:49:23 +0000 (21:49 +0200)
the bug report.

autoconfig.functions
grml-autoconfig

index 87117db..01350dd 100755 (executable)
@@ -1947,9 +1947,13 @@ if checkbootparam 'config' || [ "$DCSMP" = "/mnt/grmlcfg" ]; then
     fi
   fi
 fi
     fi
   fi
 fi
-# umount $DCSMP if it was mounted by finddcsdir
-# this doesn't really belong here
-grep -q '$DCSMP' /proc/mounts && umount $DCSMP
+}
+# }}}
+
+# {{{ confing_umount_dcsdir
+config_umount_dcsdir(){
+   # umount $DCSMP if it was mounted by finddcsdir
+   grep -q "$DCSMP" /proc/mounts && umount "$DCSMP"
 }
 # }}}
 
 }
 # }}}
 
index d19c184..fd6e73e 100755 (executable)
@@ -198,6 +198,8 @@ checkvalue $CONFIG_CONFIG && config_config
 
 checkvalue $CONFIG_SCRIPTS && config_scripts
 
 
 checkvalue $CONFIG_SCRIPTS && config_scripts
 
+checkvalue $CONFIG_FINDDCSDIR && config_umount_dcsdir
+
 checkvalue $CONFIG_PARTCONF && config_partconf
 
 [ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||||||||">/dev/tty14
 checkvalue $CONFIG_PARTCONF && config_partconf
 
 [ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||||||||">/dev/tty14