summaryrefslogtreecommitdiff
path: root/etc/rc.d/rc.firstboot
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/rc.firstboot')
-rwxr-xr-xetc/rc.d/rc.firstboot26
1 files changed, 26 insertions, 0 deletions
diff --git a/etc/rc.d/rc.firstboot b/etc/rc.d/rc.firstboot
new file mode 100755
index 0000000..6c7edc2
--- /dev/null
+++ b/etc/rc.d/rc.firstboot
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+#/sbin/ldconfig -f /opt/etc/ld.so.conf -C /opt/etc/ld.so.cache
+/sbin/ldconfig
+
+# for /etc/.info/system.info
+/bin/sysinfo
+
+#Check machine is SLP7_C210
+MACHINE=`grep Hardware /proc/cpuinfo|cut -d ":" -f 2|tr -d " "`
+if [ $MACHINE == "SLP7_C210" ];then
+ ln -s /opt/etc/X11/xorg.conf.d.slp7 /opt/etc/X11/xorg.conf.d
+else
+ #Check machine is SLP10_C210
+ if [ $MACHINE == "SLP10_C210" ];then
+ ln -s /opt/etc/X11/xorg.conf.d.slp10 /opt/etc/X11/xorg.conf.d
+ else
+ ln -s /opt/etc/X11/xorg.conf.d.default /opt/etc/X11/xorg.conf.d
+ fi
+fi
+
+
+if [ -e /opt/system/csc/.factoryreset ]; then
+ rm -f /opt/system/csc/.factoryreset
+fi
+sync