mirror of
https://github.com/km4ack/patmenu2.git
synced 2025-05-16 06:40:10 -07:00
25 lines
697 B
Bash
Executable File
25 lines
697 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#20191117 km4ack
|
|
#20220614 edit by KM4ACK
|
|
|
|
MYPATH=$HOME/patmenu2
|
|
LOGO=$MYPATH/pmlogo.png
|
|
|
|
#stop all modems that might be running
|
|
|
|
sudo killall direwolf piardopc kissattach piARDOP_GUI rigctld > /dev/null 2>&1
|
|
sudo rfcomm release /dev/rfcomm0 > /dev/null 2>&1
|
|
VARA=$(ps aux | grep wine | grep VARA | head -1 | awk '{print $2}')
|
|
kill -9 $VARA > /dev/null 2>&1
|
|
VARA=$(ps aux | grep wine | grep VARA | head -1 | awk '{print $2}')
|
|
kill -9 $VARA > /dev/null 2>&1
|
|
|
|
yad --title="Modem Stopped" --width=400 --height=100 \
|
|
--image $LOGO --window-icon=$LOGO --image-on-top --text-align=center \
|
|
--center --form --text="\r\r\rModem has been stopped" \
|
|
--button=gtk-ok
|
|
|
|
sleep 2
|
|
|
|
exit 0 |