slitaz-boot-scripts diff etc/init.d/network.sh @ rev 457

Remove cat process
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 20 12:13:09 2019 +0200 (2019-10-20)
parents 01ab2b1d9b4d
children 0dfcc5bf7b5a
line diff
     1.1 --- a/etc/init.d/network.sh	Tue Feb 26 08:21:44 2019 +0100
     1.2 +++ b/etc/init.d/network.sh	Sun Oct 20 12:13:09 2019 +0200
     1.3 @@ -69,7 +69,7 @@
     1.4  	local user="$(ps aux 2>/dev/null | grep [l]xde-session | awk 'END{print $2}')"
     1.5  	local rpid=''
     1.6  	[ -s "$npid" ] && rpid="-r $(cat $npid)"
     1.7 -	su -c "notify-send $rpid -p -i $icon 'Network' \"$2\"" - $user | tr -c 0-9 '\n' | tail -n1 > $npid
     1.8 +	su -c "notify-send $rpid -i $icon 'Network' \"$2\"" - $user | tr -c 0-9 '\n' | tail -n1 > $npid
     1.9  }
    1.10  
    1.11