X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F08persistence_excludes;h=633f6ac7346e1993db1c93adac6721859c568009;hb=285412f944154e428f9da10f0e270aa85afe9276;hp=bc5c4d872971cb7a702f6b0bd4d6ff1d92ade9bd;hpb=a298ae49a77f528b0d57e013343473bb5162cd61;p=live-boot-grml.git diff --git a/scripts/live-bottom/08persistence_excludes b/scripts/live-bottom/08persistence_excludes index bc5c4d8..633f6ac 100755 --- a/scripts/live-bottom/08persistence_excludes +++ b/scripts/live-bottom/08persistence_excludes @@ -24,18 +24,18 @@ 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 ] +if [ -z "${PERSISTENCE}" ] || [ -n "${NOPERSISTENCE}" ] || [ -z "${PERSISTENCE_IS_ON}" ] || [ ! -f /root/etc/live-persistence.binds ] then exit 0 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