slitaz-boot-scripts rev 429
network.sh: use only last line of "su -c" output
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Apr 24 12:34:34 2016 +0300 (2016-04-24) |
parents | d477099ba12c |
children | 018eeb31a351 |
files | etc/init.d/network.sh |
line diff
1.1 --- a/etc/init.d/network.sh Thu Apr 21 01:35:44 2016 +0300 1.2 +++ b/etc/init.d/network.sh Sun Apr 24 12:34:34 2016 +0300 1.3 @@ -62,7 +62,7 @@ 1.4 local user="$(ps aux | grep [l]xde-session | awk 'END{print $2}')" 1.5 local icon="$1" rpid='' 1.6 [ -s "$npid" ] && rpid="-r $(cat $npid)" 1.7 - su -c "notify-send $rpid -p -i $icon 'Network' \"$2\"" - $user > $npid 1.8 + su -c "notify-send $rpid -p -i $icon 'Network' \"$2\"" - $user | tail -n1 > $npid 1.9 } 1.10 1.11