Skip to content

Commit

Permalink
Fix MAC address
Browse files Browse the repository at this point in the history
  • Loading branch information
bz31 committed Nov 25, 2019
1 parent d2217f4 commit 2ecee15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions board/nanopi-neo/S35macaddress
@@ -0,0 +1,7 @@
#!/bin/sh
#
# Utiliser les six derniers caractères pour générer une adresse MAC.
# Elle dépend de cpuid, donc ne change pas à chaque reboot.
#
cpuid=$(cat /proc/cpuinfo | grep Serial | cut -c 21-26 | sed 's/\(..\)\(..\)\(..\)/\1:\2:\3/')
ifconfig eth0 hw ether "06:1f:6b:"$cpuid
1 change: 1 addition & 0 deletions board/nanopi-neo/post-build.sh
Expand Up @@ -14,6 +14,7 @@ mv $TARGET_DIR/etc/shairport-sync.conf $TARGET_DIR/etc/shairport-sync.conf.orig
cp $BOARD_DIR/shairport-sync.conf $TARGET_DIR/etc
cp $BOARD_DIR/S99taskset $TARGET_DIR/etc/init.d
cp $BOARD_DIR/S95squeezelite $TARGET_DIR/root
cp $BOARD_DIR/S35macaddress $TARGET_DIR/etc/init.d

##### Uncomment the following lines to use Roon Bridge by default #####
#wget http://download.roonlabs.com/builds/RoonBridge_linuxarmv7hf.tar.bz2
Expand Down
4 changes: 2 additions & 2 deletions configs/busybox.config
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Busybox version: 1.29.3
# Thu Feb 28 13:40:28 2019
# Mon Nov 25 20:04:23 2019
#
CONFIG_HAVE_DOT_CONFIG=y

Expand Down Expand Up @@ -409,7 +409,7 @@ CONFIG_DIFF=y
CONFIG_FEATURE_DIFF_DIR=y
# CONFIG_ED is not set
# CONFIG_PATCH is not set
# CONFIG_SED is not set
CONFIG_SED=y
CONFIG_VI=y
CONFIG_FEATURE_VI_MAX_LEN=4096
CONFIG_FEATURE_VI_8BIT=y
Expand Down

0 comments on commit 2ecee15

Please sign in to comment.