Commit 9d1f9287 authored by Joab Bremer's avatar Joab Bremer

Add new file

parent 672dcc8e
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: $0 <start|stop|restart>"
exit 1
fi
action=$1
case $action in
start)
nmcli networking on
;;
stop)
nmcli networking off
;;
restart)
nmcli networking off
nmcli networking on
;;
*)
echo "Invalid action: $action (use start, stop, or restart)"
exit 1
;;
esac
exit 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment