ipv4=1
- if [ "$ipv6" = 0 ]; then
- ipv6=""
- else
- ipv6=1
- fi
+ [ "$ipv6" = 1 ] || ipv6=""
[ -n "$ctl_device" ] && device=$ctl_device
return 1
}
- if [ -z "$dhcp" ]; then
+ if [ -z "$dhcp" -o "$dhcp" = 0 ]; then
echo "Setting up $ifname"
[ -n "$ipv4" ] && {
json_load "$(uqmi -s -d $device --set-client-id wds,$cid_4 --get-current-settings)"