You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
324 B
Plaintext

4 years ago
#!/bin/sh
# arg 1 is the tool to call e.g. plctool
# arg 2 is plc device mac address, if empty use the baptized plc real mac address
tool="$1"
shift
device="$1"
shift
[ -z "$device" ] && {
. /lib/functions.sh
device="$(uci_get_state delos baptization DlanMacAddress)"
[ -z "$device" ] && exit 1
}
$tool "$@" "$device"