projects
/
project
/
luci.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
treewide: avoid double-escaping CBI section labels
[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" }'