summaryrefslogtreecommitdiffstats
path: root/rc.wireless
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-01-07 20:16:22 -0600
committerRobby Workman <rworkman@slackware.com>2017-07-11 16:58:52 -0500
commitecf42b8c2825471898230d9da8fcee0a8878af8d (patch)
tree318e7dbbbc1ae84b0563f65addf0722a31d7591d /rc.wireless
parent764f4c2d9d3a8ebcb3ff8b9dce27817788ecfffe (diff)
downloadslacknetsetup-ecf42b8c2825471898230d9da8fcee0a8878af8d.tar.xz
rc.wireless: Migrate HWADDR getting from ifconfig to iproute2
TODO: Someone fluent with sed needs to review this...
Diffstat (limited to 'rc.wireless')
-rw-r--r--rc.wireless2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.wireless b/rc.wireless
index b968c9f..e7a35b8 100644
--- a/rc.wireless
+++ b/rc.wireless
@@ -124,7 +124,7 @@ $IFCOMMAND up
sleep 3
# Get the MAC address for the interface
-HWADDR=$(/sbin/ifconfig ${INTERFACE} | sed -ne 's/.*\(..:..:..:..:..:..\).*/\U\1/p')
+HWADDR=$(/sbin/ip link show dev ${INTERFACE} | sed -ne 's/.*link\/ether \(..:..:..:..:..:..\).*/\U\1/p')
# Empty all wireless parameters- some of them could still be set for a previous interface:
# when rc.inet1 is sourced from rc.M all scripts are run in the same shell.