Adding debian version 2.0~a1-1.
[live-boot-grml.git] / scripts / live-bottom / 08persistence_excludes
index bc5c4d8..43639f9 100755 (executable)
@@ -24,7 +24,7 @@ case "${1}" in
                ;;
 esac
 
-# live-initramfs header
+# live-boot header
 
 if [ -z "${PERSISTENT}" ] || [ -n "${NOPERSISTENT}" ] || [ -z "${PERSISTENCE_IS_ON}" ] || [ ! -f /root/etc/live-persistence.binds ]
 then
@@ -33,9 +33,9 @@ fi
 
 . /scripts/live-functions
 
-# live-initramfs script
+# live-boot script
 
-dirs="$(cat /root/etc/live-persistence.binds | grep -v '^#.*$' | grep -v '^ *$' | tr '\n' '\0')"
+dirs="$(sed -e '/^ *$/d' -e '/^#.*$/d' /root/etc/live-persistence.binds | tr '\n' '\0')"
 if [ -z "${dirs}" ]
 then
        exit 0