diff options
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 ;; *) |