pid test 7
This commit is contained in:
parent
5b0fc17c92
commit
458c488450
15
wire_g
15
wire_g
@ -61,6 +61,11 @@ wg_notify(){
|
|||||||
--menu="Wire-G $open!/sbin/wire_g
|
--menu="Wire-G $open!/sbin/wire_g
|
||||||
|$active stop!/sbin/wg_stop" \
|
|$active stop!/sbin/wg_stop" \
|
||||||
--command="menu"
|
--command="menu"
|
||||||
|
while [[ -z $active ]]
|
||||||
|
do
|
||||||
|
kill $pid
|
||||||
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
export -f wg_notify
|
export -f wg_notify
|
||||||
|
|
||||||
@ -146,11 +151,11 @@ remove(){
|
|||||||
--text-align=center --button=$"OK" --title "Wire-G Trash" \
|
--text-align=center --button=$"OK" --title "Wire-G Trash" \
|
||||||
--center --buttons-layout=center --borders=8
|
--center --buttons-layout=center --borders=8
|
||||||
fi
|
fi
|
||||||
if [ "$selection" = "$active" ]
|
# if [ "$selection" = "$active" ]
|
||||||
then
|
# then
|
||||||
pkill wire_g
|
# pkill wire_g
|
||||||
kill "$pid"
|
# kill yad
|
||||||
fi
|
# fi
|
||||||
fi }
|
fi }
|
||||||
export -f remove
|
export -f remove
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user