pmaports/device/community/device-samsung-manta/wifi-macaddr.sh
Alexandre Marquet a0e9c2250e
samsung-manta: move to community (MR 4783)
Signed-off-by: Alexandre Marquet <tb@a-marquet.fr>
2024-02-09 18:33:03 +02:00

5 lines
176 B
Bash

#!/bin/sh
macaddr=$(sed -n "s/^.*androidboot\.wifimacaddr=\(\([0-9A-Fa-f]\{2\}:\)\{5\}[0-9A-Fa-f]\{2\}\).*$/\1/p" < /proc/cmdline)
/sbin/ip link set wlan0 address "$macaddr"