Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 889922
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +3 lines)
Line  Link Here
0
-- /lib/netifrc/net/macchanger.sh      2023-01-06 14:08:16.677399795 +0800
0
++ -      2023-01-06 15:29:27.244168479 +0800
Lines 64-70 Link Here
64
               *) opts="${opts} -m ${mac}";;
64
               *) opts="${opts} -m ${mac}";;
65
       esac
65
       esac
66
66
67
       if [ ! -x /sbin/macchanger ]; then
67
       if [ ! -x /usr/bin/macchanger ]; then
68
               eerror "For changing MAC addresses, emerge net-analyzer/macchanger"
68
               eerror "For changing MAC addresses, emerge net-analyzer/macchanger"
69
               return 1
69
               return 1
70
       fi
70
       fi
Lines 72-78 Link Here
72
       for try in 1 2; do
72
       for try in 1 2; do
73
               # Sometimes the interface needs to be up
73
               # Sometimes the interface needs to be up
74
               [ "${try}" -eq 2 ] && _up
74
               [ "${try}" -eq 2 ] && _up
75
               output=$(/sbin/macchanger ${opts} "${IFACE}")
75
               output=$(/usr/bin/macchanger ${opts} "${IFACE}")
76
               rc=$?
76
               rc=$?
77
               [ "${rc}" -eq 0 ] && break
77
               [ "${rc}" -eq 0 ] && break
78
       done
78
       done

Return to bug 889922