| データシートサーチシステム |
|
DFR0767 データシート(PDF) 16 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0767 データシート(HTML) 16 Page - DFROBOT |
|
16 / 18 page ![]() 3. Adding execution permissions to scripts 4. Add the script to rc.local for automatic boot setup 5. Execute source /root/set_mac.sh to take effect immediately Automatically set MAC to built-in NIC +1 The setup procedure is basically the same as Add boot script to set fixed MAC, except that the contents of /root/set_mac.sh need to be modified as follows Systems and Drivers OpenWRT !/b /s mac="xx:xx:xx:xx:xx:xx" ip link set eth1 address $mac root@OpenWrt:~# chmod +x /root/set_mac.sh sh /root/set_mac.sh exit 0 #!/bin/sh count=1 eth1_mac=$(cat /sys/class/net/eth0/address) machex=$( echo "$eth1_mac" | tr -d ':' ) macdec=$( printf "%lld\n" 0x$machex ) macdec1=$(($macdec+$count)) machex1=`printf "%x" $macdec1` machex2=$(echo $machex1 | sed 's/\(..\)/\1:/g;s/:$//' ) ip link set eth1 address $machex2 7/7/24, 5:52 PM CM4 IoT Router Board Mini for Raspberry Pi Compute Module 4 Wiki - DFRobot https://wiki.dfrobot.com/Compute_Module_4_IoT_Router_Board_Mini_SKU_DFR0767 16/18 |
|
|
リンク URL |
| ALLDATASHEETはお客様のビジネスに役立ちますか? [ DONATE ] |
Alldatasheetは | 広告 | お問い合わせ | プライバシーポリシー | データシートへのリンク | リンク交換 | メーカーリスト All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |