summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/lib
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2013-02-07 09:43:26 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2013-02-07 09:46:17 +0100
commit1c5bbbd17ecb29a4b292340925c22627eb7cc1ef (patch)
tree7d0f493453e8cb3d9bb4b1ef7b1ce3f633a6c651 /config/chroot_local-includes/lib
parent1541e48478e39c829d2b513fb903379ba28e119d (diff)
downloadkanotix-1c5bbbd17ecb29a4b292340925c22627eb7cc1ef.zip
kanotix-1c5bbbd17ecb29a4b292340925c22627eb7cc1ef.tar.gz
persistence status check updated
Diffstat (limited to 'config/chroot_local-includes/lib')
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/900-enable-persistent5
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
;;
*)