mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
desktop-hostname: fixes grep that provided bad mac address
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
@@ -11,7 +11,7 @@ my_version=`cat /var/www/html/installed-ver.txt`
|
||||
my_hostname=`hostname`
|
||||
my_dev=`ip ro sho | awk '/default via/{print $5}'`
|
||||
my_ip=`ip a sho $my_dev | awk '/inet /{print $2}'`
|
||||
my_mac=`ip a sho | grep -B1 "$my_dev" | awk '/ether /{print $2}'`
|
||||
my_mac=`ip a sho | grep -A1 "$my_dev" | awk '/ether /{print $2}'`
|
||||
fill_color=${my_mac//:/}
|
||||
fill_color=${fill_color:6:12}
|
||||
X=220
|
||||
|
||||
Reference in New Issue
Block a user