Bladeren bron

完善启动、打包、守护脚本

guohui 2 jaren geleden
bovenliggende
commit
f0f4ef27c0

+ 2 - 2
04-软件设计及源码/03-核心板/V1.0/05.src/output/out/etc/init.d/S90PDUApp

@@ -21,7 +21,7 @@ start_pdu()
     #run smartPDU
     $APPDIR/smartPDU &
 }
-start_led()
+led_on()
 {
     #light led
     echo 98 > /sys/class/gpio/export
@@ -31,6 +31,7 @@ start_led()
 start_lcd()
 {
     #light lcd
+    led_on
     fbinit
     $APPDIR/Qt_Test --platform linuxfb &
 }
@@ -116,6 +117,5 @@ else
   esac
 fi
 
-/usr/sbin/smartMornitor.sh &
 
 

+ 47 - 0
04-软件设计及源码/03-核心板/V1.0/05.src/output/out/etc/init.d/rcS

@@ -0,0 +1,47 @@
+#!/bin/sh
+
+
+# Start all init scripts in /etc/init.d
+# executing them in numerical order.
+#
+for i in /etc/init.d/S??* ;do
+
+     # Ignore dangling symlinks (if any).
+     [ ! -f "$i" ] && continue
+
+     case "$i" in
+	*.sh)
+	    # Source shell script for speed.
+	    (
+		trap - INT QUIT TSTP
+		set start
+		. $i
+	    )
+	    ;;
+	*)
+	    # No sh extension, so fork subprocess.
+	    $i start
+	    ;;
+    esac
+done
+
+echo /sbin/mdev > /proc/sys/kernel/hotplug
+mdev -s
+
+#/etc/adb_conf.sh start &
+/usr/sbin/smartMornitor.sh &
+
+tinymix set "ADC2 Input MIC2 Boost Switch" 1 > /dev/null
+tinymix set "ADC3 Input MIC3 Boost Switch" 1 > /dev/null
+tinymix set "HpSpeaker Switch" 1 > /dev/null
+tinymix set "Headphone Switch" 1 > /dev/null
+
+if [ ! -f "/usr/lib/libcrypto.so.1.0.0" ]; then
+    ln -s /usr/lib/libcrypto.so.1.1 /usr/lib/libcrypto.so.1.0.0
+fi
+
+if [ ! -f "/usr/lib/libssl.so.1.0.0" ]; then
+    ln -s /usr/lib/libssl.so.1.1 /usr/lib/libssl.so.1.0.0
+fi
+
+. /etc/qtenv.sh && Launcher &

+ 1 - 0
04-软件设计及源码/03-核心板/V1.0/05.src/tools/pack.sh

@@ -18,6 +18,7 @@ echo remove tmp file
 #rm -r $OUTDIR/$TMP $OUTDIR/$TARGET
 
 echo tar base files ...
+chmod 777 -R $OUTDIR/out/
 tar -czpf $OUTDIR/$TMP -C $OUTDIR/out/ .
 
 #echo merge pdupkg