Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from francois-berder-imgtec/fix-mac
Set MAC address while inserting wifi driver
- Loading branch information
Showing
3 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh /etc/rc.common | ||
|
||
. /lib/functions/mac.sh | ||
|
||
START=10 | ||
STOP=10 | ||
|
||
start() { | ||
generate_mac $WIFI_OTP_REG0 | ||
local mac_param="mac_addr=\"$(echo $MAC | sed 's/://g')\"" | ||
insmod uccp420wlan $mac_param | ||
} | ||
|
||
stop() { | ||
rmmod uccp420wlan | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters