Add widget config from community profile to meshwizard
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / gen_dhcp_ip.sh
1 #!/bin/sh
2 # generates a dhcp-ip and netrange from a given ip/subnet
3 # takes 2 arguments:
4 # $1: Ip Address (of the Interface for which we want to generate an ip)
5
6 echo "$1" | awk 'BEGIN { FS = "." } ; { print "6."$3"."$4".1" }'