summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-irqaffin11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/vyatta-irqaffin b/scripts/vyatta-irqaffin
index 1286130..a6b7b22 100755
--- a/scripts/vyatta-irqaffin
+++ b/scripts/vyatta-irqaffin
@@ -20,7 +20,7 @@
# **** End License ****
# Provides sub-commands to:
-# - Check the validity of an interface name and affinity mask value
+# - Check the validity of an affinity mask value
# - Set the affinity mask to the IRQs being used by an interface
# - Reset the affinity mask of the IRQs being used by an interface to the
# system default value of all-ones.
@@ -113,6 +113,11 @@ check_uniproc()
case "$1" in
check)
+ # Note: We don't validate the interface name even though
+ # it is available as a command argument. That is because
+ # the interface may not exist or may not be configured at
+ # the time the check is performed.
+ #
if [ $# -ne 3 ]; then
print_usage
exit 1
@@ -122,10 +127,6 @@ case "$1" in
exit 1
fi
- if ! get_irqnums $2 ; then
- exit 1
- fi
-
if ! get_mask $3 ; then
exit 1
fi