netifd: fix compile error when both libnl and libnl-tiny are built
[openwrt.git] / package / soloscli / files / etc / hotplug.d / atm / 15-solos-init
1 #!/bin/sh
2
3 dialog() {
4 local tag="$(echo "$1" | cut -d= -f1)"
5 local value="$(echo "$1" | cut -d= -f2-)"
6 local response
7
8 response="$(soloscli -s "$port" "$tag" "$value")"
9 [ $? -ne 0 ] && {
10 logger "soloscli($port): $tag '$value' returns $response"
11 }
12 }
13
14 if [ "$ACTION" = "add" ]; then
15 include /lib/network
16 scan_interfaces
17
18 case $DEVICENAME in
19 solos-pci[0-3])
20 port="${DEVICENAME#solos-pci}"
21 device="solos${port}"
22
23 config_list_foreach wan "$device" dialog
24 ;;
25 esac
26 fi
This page took 0.04662 seconds and 5 git commands to generate.