mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-09 16:40:37 +02:00
27 lines
483 B
Plaintext
27 lines
483 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
dialog() {
|
||
|
local tag="$(echo "$1" | cut -d= -f1)"
|
||
|
local value="$(echo "$1" | cut -d= -f2-)"
|
||
|
local response
|
||
|
|
||
|
response="$(soloscli -s "$port" "$tag" "$value")"
|
||
|
[ $? -ne 0 ] && {
|
||
|
logger "soloscli($port): $tag '$value' returns $response"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if [ "$ACTION" = "add" ]; then
|
||
|
include /lib/network
|
||
|
scan_interfaces
|
||
|
|
||
|
case $DEVICENAME in
|
||
|
solos-pci[0-3])
|
||
|
port="${DEVICENAME#solos-pci}"
|
||
|
device="solos${port}"
|
||
|
|
||
|
config_list_foreach wan "$device" dialog
|
||
|
;;
|
||
|
esac
|
||
|
fi
|