Project

General

Profile

新建 #103 » eth.sh

余 顺, 09/07/2022 05:36 AM

 
#!/bin/bash
sleep 3
busybox ifconfig eth0 down

/system/xbin/su --daemon &

MAC_ADDRESS=`cat /sys/class/net/p2p0/address`

echo $MAC_ADDRESS > /dev/tty

busybox ifconfig eth0 hw ether $MAC_ADDRESS


busybox ifconfig eth0 up
(2-2/4)