[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Testbed-admins] STuck



* Hussamuddin Nasir <nasir@netlab.uky.edu> [090217 13:27]:
> I am also working on this right now and have gone past that the problem is
>
>                awk '{ printf "%d", $1*16777216+$2*65536+$3*256+$4 }'`

Okay, here's a solution. Change the awk statement above (as well as
the one used for parsing IPODMASK) to this:

awk '{ printf "0x%02x%02x%02x%02x\n", $1, $2, $3, $4 }'

We can pass a hex value to sysctl, so there's no need for the
multiplication anyway.