summaryrefslogtreecommitdiff
path: root/target/linux/ps3/petitboot/base-files/etc/init.d
diff options
context:
space:
mode:
authorhcg <hcg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-04-16 10:40:15 +0000
committerhcg <hcg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-04-16 10:40:15 +0000
commitcadbb5f37cbf5a6e1ba01563a5ab64a6610318a3 (patch)
tree530260591c27d09eefa7b4c43f72bafe40c20840 /target/linux/ps3/petitboot/base-files/etc/init.d
parentad0ca46aad4c447ff56db10c8e9d9dcef2ea58cd (diff)
[ps3]: Update default configuration to use profiles
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15229 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ps3/petitboot/base-files/etc/init.d')
-rwxr-xr-xtarget/linux/ps3/petitboot/base-files/etc/init.d/boot18
1 files changed, 9 insertions, 9 deletions
diff --git a/target/linux/ps3/petitboot/base-files/etc/init.d/boot b/target/linux/ps3/petitboot/base-files/etc/init.d/boot
index 2897f3a7da..c84c6873d3 100755
--- a/target/linux/ps3/petitboot/base-files/etc/init.d/boot
+++ b/target/linux/ps3/petitboot/base-files/etc/init.d/boot
@@ -19,12 +19,13 @@ system_config() {
config_get log_ip "$cfg" log_ip
config_get log_size "$cfg" log_size
+ config_get log_port "$cfg" log_port
config_get log_file "$cfg" log_file
- # use a shared mem buffer for local default
+
[ -z $log_file -a -z "$log_size" ] && log_size=16
- syslogd ${log_size:+-C $log_size} ${log_file:+-O $log_file} \
- ${log_ip:+-L -R $log_ip}
- klogd
+ [ -x /sbin/syslogd ] && syslogd ${log_size:+-C $log_size} \
+ ${log_file:+-O $log_file} ${log_ip:+-L -R $log_ip}
+ [ -x /sbin/klogd ] && klogd
}
apply_uci_config() {(
@@ -37,16 +38,15 @@ start() {
[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
[ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD
+ apply_uci_config
+ config_load system
+ config_foreach system_config system
+
mkdir -p /var/run
mkdir -p /var/log
mkdir -p /var/lock
mkdir -p /var/state
mkdir -p /tmp/.uci
-
- apply_uci_config
- config_load system
- config_foreach system_config system
-
chown 0700 /tmp/.uci
touch /var/log/wtmp
touch /var/log/lastlog