Update src/killsw
This commit is contained in:
@@ -17,10 +17,10 @@ case "$cmd" in
|
|||||||
systemctl status killswitch.target
|
systemctl status killswitch.target
|
||||||
;;
|
;;
|
||||||
add)
|
add)
|
||||||
if [[ "$3" == "to" && "$4" == "group" && -n "$5" ]]; then
|
if [[ -n "$2" && "$3" == "to" && -n "$5" ]]; then
|
||||||
echo "Called add $2 to group $5"
|
echo "Called add $2 to $5"
|
||||||
else
|
else
|
||||||
echo "Usage: killsw add [service] to group [name]"
|
echo "Usage: killsw add [service] to [group]"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
help|-h|--help)
|
help|-h|--help)
|
||||||
@@ -34,7 +34,7 @@ COMMANDS:
|
|||||||
stop Stop all services linked to killswitch.target
|
stop Stop all services linked to killswitch.target
|
||||||
start Start all services linked to killswitch.target
|
start Start all services linked to killswitch.target
|
||||||
status Show the current status of the killswitch target
|
status Show the current status of the killswitch target
|
||||||
add [service] to group [name] adds services to different groups. (not doing anything at the moment)
|
add [service] to [name] adds services to different groups. (not doing anything at the moment)
|
||||||
-h, --help Show this help message
|
-h, --help Show this help message
|
||||||
-v, --version Show version information
|
-v, --version Show version information
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user