[gobolinux-devel] [gobolinux-commits] r2977 - trunk/ConfigTools/bin

Jonas Karlsson jonka750 at student.liu.se
Thu Mar 20 02:59:18 NZDT 2008


On 19/03/2008, André Detsch <detsch at gobolinux.org> wrote:
> On Wed, Mar 19, 2008 at 8:38 AM,  <mohjive at svn.gobolinux.org> wrote:
>  >  +    ifconfig ath${i} &> /dev/null && echo eth${i}
>
> Maybe (...) && echo ath${i}?
>
>
>  >  +    ifconfig wlan${i} &> /dev/null && echo eth${i}
>
> Same here, but echo wlan${i}
>
>  What about:
>
>  for iface_type in eth ath wlan
>  do
>
>    for i in `seq 0 9`;
>    do
>
>       ifconfig ${iface_type}${i} &> /dev/null && echo ${iface_type}${i}
>    done
>  done
>
Of course! I'll change this, thanks. :)

-- 
/Jonas


More information about the gobolinux-devel mailing list