issue with netdevices_up and squeeze

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Mon Dec 13 16:12:05 CET 2010


On Mon, 13 Dec 2010, Thomas Lange wrote:
> >>>>> On Sun, 12 Dec 2010 16:38:23 -0800, David Dreezer <dave at socialstrata.com> said:
>
>     > get-boot-info determines $netdevices_up like so:
>
>     >     netdevices_up=$(ip link show up | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
>
> I think will will fix it even with lenny.
>
> Index: get-boot-info
> ===================================================================
> --- get-boot-info       (revision 6195)
> +++ get-boot-info       (working copy)
> @@ -41,7 +41,7 @@
>  netdevice_info() {
>
>      # devices that are running
> -    netdevices_up=$(ip link show up | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
> +    netdevices_up=$(ip link show up | grep "^[1-9$].*LOWER_UP" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)

My 'ip utility, iproute2-ss080725':

$ ip link show help
Usage: ip link set DEVICE { up | down |
                             arp { on | off } |
                             dynamic { on | off } |
                             multicast { on | off } |
                             allmulticast { on | off } |
                             promisc { on | off } |
                             trailers { on | off } |
                             txqueuelen PACKETS |
                             name NEWNAME |
                             address LLADDR | broadcast LLADDR |
                             mtu MTU }
                             netns PID }
       ip link show [ DEVICE ]

does not support an "up" argument.


-- 
Cristian


More information about the linux-fai mailing list