Skip to content

Commit a39a3ff

Browse files
committed
include relative to script path on disk
1 parent 3a6847f commit a39a3ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

find-port-for-mac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test -z "$1" && echo "Usage: $0 d4:ca:6d:01:4c:f2" && exit 1
1212

1313
mac=$1
1414

15-
. ./shm-trunk.regex
15+
. $(dirname $0)/shm-trunk.regex
1616

1717
grep -r -i $mac /dev/shm/snmp-mac-port/ | tee /dev/shm/mac.$mac | grep --file /dev/shm/trunk.regex -v | cut -d: -f2- | while read name vlan mac port ; do
1818
# sw-rack2 - 2c:ea:7f:6f:0c:ec 27

0 commit comments

Comments
 (0)