Compare commits
2 Commits
8b49189438
...
b5a1ba3579
| Author | SHA1 | Date | |
|---|---|---|---|
| b5a1ba3579 | |||
| 0087bf3622 |
@@ -12,7 +12,8 @@ show_help(){
|
||||
echo " -y | Answer all questions with yes"
|
||||
echo ""
|
||||
echo "-- MODES --"
|
||||
echo " access | control over remote access to the device (mac-based-filtering using nftables)"
|
||||
echo " access | control over remote access to the device (mac-based-filtering using nftables)"
|
||||
echo " transfer | simplified file-transfer with backup-option"
|
||||
exit 0
|
||||
}
|
||||
|
||||
@@ -35,6 +36,19 @@ if [[ "$1" == "access" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ "$1" == "transfer" ]]; then
|
||||
|
||||
shift
|
||||
|
||||
if [[ -x "./sub/transfer.sh" ]]; then
|
||||
./sub/transfer.sh "$@"
|
||||
else
|
||||
echo "Command 'transfer' not found!" >&2
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
while getopts ":cyhv" opt; do
|
||||
case $opt in
|
||||
c) print_config ;;
|
||||
|
||||
3
src/sub/transfer.sh
Normal file
3
src/sub/transfer.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "unimplemented"
|
||||
Reference in New Issue
Block a user