mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-20 00:44:05 +02:00
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6532 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
add6fc7bda
commit
e8311cb171
2
package/base-files/files/etc/config/system
Normal file
2
package/base-files/files/etc/config/system
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
config system
|
||||||
|
option hostname OpenWrt
|
@ -2,13 +2,22 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
START=10
|
START=10
|
||||||
|
|
||||||
|
system_config() {
|
||||||
|
local cfg="$1"
|
||||||
|
local hostname
|
||||||
|
|
||||||
|
config_get hostname "$cfg" hostname
|
||||||
|
echo "${hostname:-OpenWrt}" > /proc/sys/kernel/hostname
|
||||||
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ -f /proc/mounts ] || /sbin/mount_root
|
[ -f /proc/mounts ] || /sbin/mount_root
|
||||||
[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
|
[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
|
||||||
vconfig set_name_type DEV_PLUS_VID_NO_PAD
|
vconfig set_name_type DEV_PLUS_VID_NO_PAD
|
||||||
|
|
||||||
HOSTNAME=${wan_hostname%%.*}
|
config_load system
|
||||||
echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname
|
config_foreach system_config system
|
||||||
|
|
||||||
mkdir -p /var/run
|
mkdir -p /var/run
|
||||||
mkdir -p /var/log
|
mkdir -p /var/log
|
||||||
|
Loading…
Reference in New Issue
Block a user