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>
|
||||
/dev/root / ext2 ro,noauto 0 1
|
||||
proc /proc proc defaults 0 0
|
||||
devpts /dev/pts devpts defaults,gid=5,mode=620 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
|
||||
#
|
||||
|
||||
START=10
|
||||
START=5
|
||||
STOP=98
|
||||
|
||||
boot() {
|
||||
mount -a
|
||||
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
|
||||
# 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`
|
||||
# Startup the system
|
||||
/bin/mount -t proc proc /proc
|
||||
/bin/mkdir -p /dev/pts
|
||||
/bin/mkdir -p /dev/shm
|
||||
/bin/mount -a
|
||||
}
|
||||
|
||||
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
|
||||
#
|
||||
|
||||
START=11
|
||||
START=7
|
||||
|
||||
boot() {
|
||||
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