10 lines
142 B
Bash
10 lines
142 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
RUNNING=$(pgrep nmtui)
|
||
|
|
||
|
if [ "$RUNNING" ]; then
|
||
|
kill $RUNNING 2&>1 /dev/null
|
||
|
else
|
||
|
/usr/bin/xterm -e '/usr/bin/nmtui'
|
||
|
fi
|