Update board overlay.
This commit is contained in:
3
bsp/board/domo/configs/device_table.txt
Normal file
3
bsp/board/domo/configs/device_table.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Clasical Linux entries
|
||||||
|
|
||||||
|
/dev/console c 666 0 0 5 1 0 0 -
|
||||||
@@ -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
|
||||||
|
|||||||
1
bsp/board/domo/ovl/etc/hostname
Symbolic link
1
bsp/board/domo/ovl/etc/hostname
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/tmp/hostname
|
||||||
@@ -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`
|
|
||||||
}
|
}
|
||||||
|
|||||||
24
bsp/board/domo/ovl/etc/init.d/hostname
Executable file
24
bsp/board/domo/ovl/etc/init.d/hostname
Executable 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
0
bsp/board/domo/ovl/etc/init.d/logd
Normal file → Executable file
0
bsp/board/domo/ovl/etc/init.d/mountd
Normal file → Executable file
0
bsp/board/domo/ovl/etc/init.d/mountd
Normal file → Executable file
2
bsp/board/domo/ovl/etc/init.d/usergo
Normal file → Executable file
2
bsp/board/domo/ovl/etc/init.d/usergo
Normal file → Executable 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
|
||||||
|
|||||||
1
bsp/board/domo/ovl/etc/rc.d/K50logd
Symbolic link
1
bsp/board/domo/ovl/etc/rc.d/K50logd
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../init.d/logd
|
||||||
1
bsp/board/domo/ovl/etc/rc.d/S07usergo
Symbolic link
1
bsp/board/domo/ovl/etc/rc.d/S07usergo
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../init.d/usergo
|
||||||
1
bsp/board/domo/ovl/etc/rc.d/S11hostname
Symbolic link
1
bsp/board/domo/ovl/etc/rc.d/S11hostname
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../init.d/hostname
|
||||||
1
bsp/board/domo/ovl/etc/rc.d/S20logd
Symbolic link
1
bsp/board/domo/ovl/etc/rc.d/S20logd
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../init.d/logd
|
||||||
1
bsp/board/domo/ovl/etc/rc.d/S80mountd
Symbolic link
1
bsp/board/domo/ovl/etc/rc.d/S80mountd
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../init.d/mountd
|
||||||
Reference in New Issue
Block a user