mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 05:06:39 +00:00
add support for board-specific os.conf overrides
This commit is contained in:
parent
bf37f786c0
commit
40cf8930e4
@ -28,6 +28,15 @@ ln -s /tmp $TARGET/var/run
|
|||||||
ln -s /tmp $TARGET/var/spool
|
ln -s /tmp $TARGET/var/spool
|
||||||
ln -s /tmp $TARGET/var/tmp
|
ln -s /tmp $TARGET/var/tmp
|
||||||
|
|
||||||
|
# cleanups
|
||||||
$COMMON_DIR/cleanups.sh
|
$COMMON_DIR/cleanups.sh
|
||||||
test -x $BOARD_DIR/cleanups.sh && test -x $BOARD_DIR/cleanups.sh || true
|
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
2
board/odroidc1/os.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
os_tty_login="ttyS0"
|
||||||
|
|
@ -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
2
board/odroidc2/os.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
os_tty_login="ttyS0"
|
||||||
|
|
@ -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
2
board/pine64/os.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
os_tty_login="ttyS0"
|
||||||
|
|
@ -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=""
|
|
Loading…
x
Reference in New Issue
Block a user