|
@@ -23,7 +23,7 @@ case ${1} in
|
23
|
23
|
;;
|
24
|
24
|
interface)
|
25
|
25
|
START_ON_IF=$2 # only process this interface
|
26
|
|
- logger -t SQM -s "Re/starting sqm on interface ${START_ON_IF}"
|
|
26
|
+ logger -t SQM -s "Trying to re-start SQM on interface ${START_ON_IF}"
|
27
|
27
|
# TODO if $2 is empty just bail...
|
28
|
28
|
if [ -z ${START_ON_IF} ] ;
|
29
|
29
|
then
|
|
@@ -108,6 +108,14 @@ run_simple_qos() {
|
108
|
108
|
logger -t SQM -s "${0} SQM qdiscs on ${IFACE} removed"
|
109
|
109
|
return 0
|
110
|
110
|
fi
|
|
111
|
+ # in case of spurious hotplug events, try double check whether the interface is really up
|
|
112
|
+ if [ ! -d /sys/class/net/${IFACE} ] ;
|
|
113
|
+ then
|
|
114
|
+ echo "${IFACE} does currently not exist, not even trying to start SQM on nothing." > /dev/kmsg
|
|
115
|
+ logger -t SQM -s "${IFACE} does currently not exist, not even trying to start SQM on nothing."
|
|
116
|
+ return 0
|
|
117
|
+ fi
|
|
118
|
+
|
111
|
119
|
logger -t SQM -s "${0} Queue Setup Script: ${SCRIPT}"
|
112
|
120
|
[ -x "$SCRIPT" ] && { $SCRIPT ; touch ${ACTIVE_STATE_FILE_FQN}; }
|
113
|
121
|
}
|