diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-28 17:34:18 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-28 17:34:18 -0800 |
commit | 4c5d3a307e6132183ef619e13620afa93b839c89 (patch) | |
tree | 6155882649ffa513ba0574803359088e9dea2566 | |
parent | 291f2bfd4289db9199cb427a86b0c7f47758f202 (diff) | |
parent | afa89d9b40a08c06a74d1de725830229276222e2 (diff) | |
download | vyatta-cfg-4c5d3a307e6132183ef619e13620afa93b839c89.tar.gz vyatta-cfg-4c5d3a307e6132183ef619e13620afa93b839c89.zip |
Merge branch 'glendale' of git.vyatta.com:/git/vyatta-cfg into glendale
-rw-r--r-- | scripts/vyatta-irqaffin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-irqaffin b/scripts/vyatta-irqaffin index 6650175..90222e0 100644 --- a/scripts/vyatta-irqaffin +++ b/scripts/vyatta-irqaffin @@ -27,7 +27,7 @@ print_usage() get_irqnum() { - irqnum=`find /proc/irq -name $1 -print | awk -F / '{ print $4 }'` + irqnum=`cat /sys/class/net/$1/device/irq` if [ -z "$irqnum" ]; then echo "Invalid interface name: $1" return 1 @@ -46,7 +46,7 @@ get_mask() fi # strip out all the hex digits - exmask=`echo $mask | sed -e s/[0-9a-f]//g` + exmask=`echo $mask | sed -e s/[0-9a-fA-F]//g` # if anything is left, its not hex if [ ! -z "$exmask" ]; then |