add support for board-specific os.conf overrides

This commit is contained in:
Calin Crisan 2017-06-02 20:38:06 +03:00
parent bf37f786c0
commit 40cf8930e4
7 changed files with 15 additions and 33 deletions

View File

@ -28,6 +28,15 @@ ln -s /tmp $TARGET/var/run
ln -s /tmp $TARGET/var/spool
ln -s /tmp $TARGET/var/tmp
# cleanups
$COMMON_DIR/cleanups.sh
test -x $BOARD_DIR/cleanups.sh && test -x $BOARD_DIR/cleanups.sh || true
# board-specific os.conf
if [ -r $BOARD_DIR/os.conf ]; then
for line in $(cat $BOARD_DIR/os.conf); do
key=$(echo $line | cut -d '=' -f 1)
sed -i -r "s/$key=.*/$line/" /$TARGET/etc/os.conf
done
fi

2
board/odroidc1/os.conf Normal file
View File

@ -0,0 +1,2 @@
os_tty_login="ttyS0"

View File

@ -1,11 +0,0 @@
os_debug="false"
os_prereleases="false"
os_tty_login="ttyS0"
os_eth="eth0"
os_wlan="wlan0"
os_ppp="ppp0"
os_networkless="false"
os_firmware_method="github"
os_firmware_repo="ccrisan/thingos"
os_firmware_username=""
os_firmware_password=""

2
board/odroidc2/os.conf Normal file
View File

@ -0,0 +1,2 @@
os_tty_login="ttyS0"

View File

@ -1,11 +0,0 @@
os_debug="false"
os_prereleases="false"
os_tty_login="ttyS0"
os_eth="eth0"
os_wlan="wlan0"
os_ppp="ppp0"
os_networkless="false"
os_firmware_method="github"
os_firmware_repo="ccrisan/thingos"
os_firmware_username=""
os_firmware_password=""

2
board/pine64/os.conf Normal file
View File

@ -0,0 +1,2 @@
os_tty_login="ttyS0"

View File

@ -1,11 +0,0 @@
os_debug="false"
os_prereleases="false"
os_tty_login="ttyS0"
os_eth="eth0"
os_wlan="wlan0"
os_ppp="ppp0"
os_networkless="false"
os_firmware_method="github"
os_firmware_repo="ccrisan/thingos"
os_firmware_username=""
os_firmware_password=""