tazpanel diff hardware.cgi @ rev 581
libtazpanel: s/noboby/root/
"fixes" user-switch on any link clicked if panel launched from new tazpkg notifier or su -c tazpanel
env problems?
------------------
boot.cgi: do not find in /run/media/username/disks
"fixes" user-switch on any link clicked if panel launched from new tazpkg notifier or su -c tazpanel
env problems?
------------------
boot.cgi: do not find in /run/media/username/disks
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Apr 08 18:09:43 2016 +0200 (2016-04-08) |
parents | d04d60d1892d |
children | 05203af2f9b4 |
line diff
1.1 --- a/hardware.cgi Sun Feb 21 12:31:16 2016 +0100 1.2 +++ b/hardware.cgi Fri Apr 08 18:09:43 2016 +0200 1.3 @@ -407,7 +407,8 @@ 1.4 # action 1.5 action="mount" 1.6 [ -n "$mp" ] && action="umount" 1.7 - type=$(blkid $fs | sed '/TYPE=/!d;s/.* TYPE="\([^"]*\).*/\1/') 1.8 + type=$(blkid $fs | sed '/ TYPE=/!d;s/.* TYPE="\([^"]*\).*/\1/') 1.9 + [ -n "$type" ] || continue 1.10 [ "$type" == "swap" ] && action="swapon" 1.11 if grep -q "^$fs " /proc/swaps; then 1.12 action="swapoff"