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.
10 lines
287 B
Bash
10 lines
287 B
Bash
4 years ago
|
#!/bin/sh
|
||
|
|
||
|
. /lib/functions.sh
|
||
|
|
||
|
device="$(uci_get_state delos baptization DlanMacAddress)"
|
||
|
[ -n "$device" ] || exit 1
|
||
|
nmk=$(plctool -i "$1" -I "$device" | grep NMK | cut -d' ' -f 2)
|
||
|
[ -n "$nmk" ] || exit 1
|
||
|
plctool -i "$1" -D "$(hpavkey -D "$2")" -J FF:FF:FF:FF:FF:FF -K "$nmk" "$device"
|