Package: net-tools
Version: 1.60-17
Severity: normal
File: /sbin/ifconfig

Not even an error in $? is returned if failed to take device down,
Nor any error messages.

# ifconfig -s
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR   TX-OK TX-ERR TX-DRP TX-OVR Flg
lo    16436 0        34      0      0      0       34      0      0      0 LRU
sit0   1480 0         0      0      0      0        0      0      0      0 ORU
# ifconfig lo down
# ifconfig sit0 down; echo $?
0
# ifconfig -s
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR   TX-OK TX-ERR TX-DRP TX-OVR Flg
sit0   1480 0         0      0      0      0        0      0      0      0 ORU

Also could return errors/messages if the device is already in the state,

# ifconfig lo down; echo $?
0
# ifconfig lo up
# ifconfig lo up; echo $?
0

like /etc/init.d/many_packages start|stop do.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to