blob: 564cf3bc9a0c17164fa267ccf6c2bd8d8e973b1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Use correct paths in update-etherncodes.sh
Bug: https://bugs.gentoo.org/783195
--- a/update-ethercodes.sh.in
+++ b/update-ethercodes.sh.in
@@ -6,22 +6,19 @@
prog="`basename $0`"
-PATH=/usr/local/bin:${PATH}
-export PATH
-
t1=/tmp/${prog}.1.$$
trap 'rm -f ${t1}; exit 1' 1 2 3 15 EXIT
if [ ! -f arp.dat ]; then
- cd /usr/local/arpwatch || exit 1
+ cd @datarootdir@/arpwatch || exit 1
fi
fn=ethercodes.dat
url=https://standards-oui.ieee.org/oui/oui.csv
cmd1="curl --no-progress-meter ${url}"
-cmd2=./massagevendor
+cmd2=@sbindir@/massagevendor.py
# Emit exit status of first command in pipe
# https://unix.stackexchange.com/a/70675
|