Lines 63-78
if [ x$CONTROL_ETHERNET = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_ETHE
Link Here
|
63 |
fi |
63 |
fi |
64 |
fi |
64 |
fi |
65 |
|
65 |
|
66 |
if ! [ -z $dev_path ] && [ -f $dev_path/enable ]; then |
66 |
if ! [ -z $dev_path ] && [ -f $dev_path/enabled ]; then |
67 |
if [ x$DISABLE_ETHERNET = x1 ]; then |
67 |
if [ x$DISABLE_ETHERNET = x1 ]; then |
68 |
if [ -f $dev_path/enable ]; then |
68 |
if [ -f $dev_path/enabled ]; then |
69 |
echo 0 > $dev_path/enable |
69 |
echo 0 > $dev_path/enabled 2>/dev/null |
70 |
log "VERBOSE" "ethernet: Disabling ethernet device $DEVICE" |
70 |
log "VERBOSE" "ethernet: Disabling ethernet device $DEVICE" |
71 |
DISABLED=1 |
71 |
DISABLED=1 |
72 |
fi |
72 |
fi |
73 |
elif [ x$DISABLE_ETHERNET = x0 ]; then |
73 |
elif [ x$DISABLE_ETHERNET = x0 ]; then |
74 |
if [ -f $dev_path/enable ]; then |
74 |
if [ -f $dev_path/enabled ]; then |
75 |
echo 1 > $dev_path/enable |
75 |
echo 1 > $dev_path/enabled 2>/dev/null |
76 |
log "VERBOSE" "ethernet: Re-enabling ethernet device $DEVICE" |
76 |
log "VERBOSE" "ethernet: Re-enabling ethernet device $DEVICE" |
77 |
DISABLED=0 |
77 |
DISABLED=0 |
78 |
fi |
78 |
fi |
79 |
- |
|
|