diff --git a/bsp/default/root_file_system/etc/config/board b/bsp/default/root_file_system/etc/config/board new file mode 100644 index 0000000..26bd321 --- /dev/null +++ b/bsp/default/root_file_system/etc/config/board @@ -0,0 +1 @@ +config model 'model' diff --git a/bsp/default/root_file_system/etc/rc.local.tpl b/bsp/default/root_file_system/etc/rc.local.tpl index f1581b6..bddf87e 100755 --- a/bsp/default/root_file_system/etc/rc.local.tpl +++ b/bsp/default/root_file_system/etc/rc.local.tpl @@ -1,12 +1,15 @@ # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. +BOARD=$(cat /var/sysinfo/board_name) +if ! uci get board.model.name; then + uci set board.model.name=BOARD +fi +. /etc/rc.local.$BOARD + # collect environment info and write to dot-script /etc/environment.sh > /tmp/environment -BOARD=$(cat /var/sysinfo/board_name) -. /etc/rc.local.$BOARD - # Starting NTP-Client Daemon ntpd -p ${NTPD_IP} diff --git a/bsp/wr841n9/root_file_system/etc/config/board b/bsp/wr841n9/root_file_system/etc/config/board deleted file mode 100644 index 9ccfc88..0000000 --- a/bsp/wr841n9/root_file_system/etc/config/board +++ /dev/null @@ -1,2 +0,0 @@ -config model 'model' - option name 'tl-wr841n-v9'