*шпаргалка

mva 21.02.2013 21:52

#! /bin/ash
EUIPAD="ff:fe"
ROUTER_ADDR=$(ip a s br-lan | awk '/inet6 [^f]+[^ec]+[^80]+[^0]+/{print $2}')
PREFIX=${ROUTER_ADDR%:1/64}
STATIC="";

(
for DH in $(awk -F= '/dhcp-host/{print $2}' /tmp/etc/dnsmasq.conf);
do
MAC="${DH%%,*}";
HOST="${DH##*,}";
STATIC="${STATIC:+${STATIC}|${HOST}}";
... more →

mva 21.02.2013 20:29

ip a s br-lan | awk '/inet6 [^f]+[^ec]+[^80]+[^0]+/{print $2}'

*шпаргалка is used by:

mva

mva