4 alias debug
=${DEBUG:-:}
8 ifconfig
"$1" >&- 2>&- ||
9 [ "${1%%[0-9]}" = "br" ] ||
10 { debug
"# missing interface '$1' ignored"; false
; }
14 env
-i ACTION
=$1 INTERFACE
=$2 /sbin
/hotplug net
20 c
=((c
>> 1)&0x55555555)+(c
&0x55555555),
21 c
=((c
>> 2)&0x33333333)+(c
&0x33333333),
22 c
=((c
>> 4)&0x0f0f0f0f)+(c
&0x0f0f0f0f),
23 c
=((c
>> 8)&0x00ff00ff)+(c
&0x00ff00ff),
24 c
=((c
>>16)&0x0000ffff)+(c
&0x0000ffff)
33 set $
(echo $1 |
tr '\.' ' ')
34 echo $
(($1<<24|$2<<16|$3<<8|$4))
38 echo $(($1>>24&255)).$
(($1>>16&255)).$
(($1>>8&255)).$
(($1&255))
This page took 0.050433 seconds and 5 git commands to generate.