a0e9c2250e
Signed-off-by: Alexandre Marquet <tb@a-marquet.fr>
5 lines
176 B
Bash
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"
|