Update board overlay.

This commit is contained in:
2017-04-19 21:46:38 +02:00
parent e37d08db04
commit bb5e88029e
14 changed files with 40 additions and 20 deletions

View File

@@ -0,0 +1,3 @@
# Clasical Linux entries
/dev/console c 666 0 0 5 1 0 0 -

View File

@@ -1,5 +1,4 @@
# <file system> <mount pt> <type> <options> <dump> <pass> # <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 ro,noauto 0 1
proc /proc proc defaults 0 0 proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0 tmpfs /dev/shm tmpfs mode=0777 0 0

View File

@@ -0,0 +1 @@
/tmp/hostname

View File

@@ -1,25 +1,13 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
# #
START=10 START=5
STOP=98 STOP=98
boot() { boot() {
mount -a # Startup the system
ConfigState=`fw_printenv is_configured | cut -d'=' -f2` /bin/mount -t proc proc /proc
if [ "$ConfigState" = "0" ]; then /bin/mkdir -p /dev/pts
echo "Reset the Device Name to Factory." /bin/mkdir -p /dev/shm
mkdir -p /mnt/user/UserSettings/ /bin/mount -a
rm /mnt/user/UserSettings/*
/usr/local/bin/devicename mediaCTRLRenderer.ini mediaCTRLServer.ini SlavePlayer.ini
mkdir -p /mnt/user/uci/
rm /mnt/user/uci/*
fw_setenv is_configured 1
fi
# Set our device Hostname using the friendlyName
friendlyname=`cat /usr/local/configs/mediaCTRLRenderer.i
ni | grep friendlyname | cut -f2 -d'='`
mac=`fw_printenv ethaddr | cut -f4-6 -d':' | sed s/://g`
hostname $friendlyname-$mac
echo Device hostname is `hostname`
} }

View File

@@ -0,0 +1,24 @@
#!/bin/sh /etc/rc.common
#
START=11
boot() {
# Set our device Hostname using the friendlyName
friendlyname=`cat /usr/local/configs/mediaCTRLRenderer.ini | grep friendlyname | cut -f2 -d'='`
mac=`fw_printenv ethaddr | cut -f4-6 -d':' | sed s/://g`
echo $friendlyname-$mac > /etc/hostname
hostname -F /etc/hostname
echo Device hostname is `hostname`
# Set DLNA friendly name.
ConfigState=`fw_printenv is_configured | cut -d'=' -f2`
if [ "$ConfigState" = "0" ]; then
echo "Reset the Device Name to Factory."
mkdir -p /mnt/user/UserSettings/
rm /mnt/user/UserSettings/*
/usr/local/bin/devicename mediaCTRLRenderer.ini mediaCTRLServer.ini SlavePlayer.ini
mkdir -p /mnt/user/uci/
rm /mnt/user/uci/*
fw_setenv is_configured 1
fi
}

0
bsp/board/domo/ovl/etc/init.d/logd Normal file → Executable file
View File

0
bsp/board/domo/ovl/etc/init.d/mountd Normal file → Executable file
View File

2
bsp/board/domo/ovl/etc/init.d/usergo Normal file → Executable file
View File

@@ -1,7 +1,7 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
# #
START=11 START=7
boot() { boot() {
if [ -e "/mnt/user/usergo.sh" ]; then if [ -e "/mnt/user/usergo.sh" ]; then

View File

@@ -0,0 +1 @@
../init.d/logd

View File

@@ -0,0 +1 @@
../init.d/usergo

View File

@@ -0,0 +1 @@
../init.d/hostname

View File

@@ -0,0 +1 @@
../init.d/logd

View File

@@ -0,0 +1 @@
../init.d/mountd