diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2013-02-07 09:43:26 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2013-02-07 09:46:17 +0100 |
commit | 1c5bbbd17ecb29a4b292340925c22627eb7cc1ef (patch) | |
tree | 7d0f493453e8cb3d9bb4b1ef7b1ce3f633a6c651 /config | |
parent | 1541e48478e39c829d2b513fb903379ba28e119d (diff) | |
download | kanotix-1c5bbbd17ecb29a4b292340925c22627eb7cc1ef.zip kanotix-1c5bbbd17ecb29a4b292340925c22627eb7cc1ef.tar.gz |
persistence status check updated
Diffstat (limited to 'config')
-rwxr-xr-x | config/chroot_local-includes/lib/live/config/900-enable-persistent | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/chroot_local-includes/lib/live/config/900-enable-persistent b/config/chroot_local-includes/lib/live/config/900-enable-persistent index ee354a6..55a77d9 100755 --- a/config/chroot_local-includes/lib/live/config/900-enable-persistent +++ b/config/chroot_local-includes/lib/live/config/900-enable-persistent @@ -1,10 +1,11 @@ #!/bin/sh # "enable persistent" desktop-icon +[ -x /usr/local/bin/enable_persistent_live.bash ] || exit 0 case "$(awk '{if($2=="/live/image"){print $1;}}' /proc/mounts)" in /dev/sd*) - case "$(awk '{if($2=="/live/cow"){print $1;}}' /proc/mounts)" in - /dev/sd*) + case "$(awk '{if($2=="/live/cow"){print $1;}}' /proc/mounts; ls /grub.cmdline 2>/dev/null)" in + /dev/sd*|/grub.cmdline) rm -f /home/${LIVE_USERNAME}/Desktop/enable_persistent.desktop ;; *) |