slitaz-configs rev 275

tazvolume: move id-file from /var/run to /tmp
(by default user have no write permissions in /var/run)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 11 16:13:17 2016 +0200 (2016-03-11)
parents 705e1ce7f30f
children e9c2241301a1
files rootfs/usr/bin/tazvolume
line diff
     1.1 --- a/rootfs/usr/bin/tazvolume	Fri Mar 11 14:44:02 2016 +0200
     1.2 +++ b/rootfs/usr/bin/tazvolume	Fri Mar 11 16:13:17 2016 +0200
     1.3 @@ -20,7 +20,7 @@
     1.4  [ -z "$vol" ] && vol='0'
     1.5  
     1.6  # Get notification ID to replace
     1.7 -nid='/var/run/notify.id'
     1.8 +nid='/tmp/notify.id'
     1.9  if [ -f "$nid" ]; then
    1.10  	old=$(($(date -u +%s) - $(date -ur "$nid" +%s)))
    1.11  	# remove if older than 3 seconds