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
361 B
Bash
17 lines
361 B
Bash
#!/bin/sh
|
|
|
|
[ -z "$1" ] && exit 1
|
|
|
|
. /lib/functions.sh
|
|
config_load plc
|
|
config_get PLC plc interface 'br-lan'
|
|
|
|
[ -e /lib/dlan/baptization.sh ] && . /lib/dlan/baptization.sh
|
|
MAC="$DlanMacAddress"
|
|
|
|
[ -z "$MAC" ] && MAC=$(chkpib /lib/firmware/plc/user.pib -v|sed -n -e '/MAC/s/.*MAC //p'|head -n 1)
|
|
|
|
[ -z "$MAC" ] && exit 1
|
|
|
|
/usr/bin/plctool -i "$PLC" -B"$1" "$MAC"
|