Compare commits

...

2 Commits

Author SHA1 Message Date
b5a1ba3579 added transfer.sh as subcommand 2026-02-01 16:52:22 +01:00
0087bf3622 added transfer.sh 2026-02-01 16:50:34 +01:00
2 changed files with 18 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ show_help(){
echo ""
echo "-- MODES --"
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
View File

@@ -0,0 +1,3 @@
#!/bin/bash
echo "unimplemented"