linkpi_firmware_history/rootfs/link/shell/init.sh

39 lines
831 B
Bash
Raw Normal View History

2024-02-15 22:07:30 +01:00
. /etc/profile
/link/bin/rtc -g time
/link/shell/update.sh
mkdir /tmp/snap
mkdir /tmp/hls
mkdir /tmp/log
mkdir /root/usb
ifconfig lo 127.0.0.1
/usr/php/sbin/php-fpm -R -p /usr/php -c /usr/php/etc/php.ini
/usr/nginx/sbin/nginx -p /usr/nginx
ip=`ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
if [ -z "$ip" ]; then
/link/shell/setMac.sh
sleep 1
/link/shell/mountUsb.sh
/link/shell/setNetwork.sh
/link/shell/cron.sh &
/link/shell/ndi.sh &
sls_enable=$(cat /link/config/sls_enable |awk '{printf "%s",$1}')
if [ "$sls_enable" == "true" ]; then
/link/bin/sls -c /link/config/sls.conf &
fi
sleep 2
/link/shell/enc.sh &
/link/shell/onvif.sh
/link/bin/Gpio &
/link/shell/oled.sh &
sleep 2
/link/bin/PortCtrl &
/link/bin/WifiCtrl &
fi
#mount -t nfs -o nolock 192.168.1.28:/home/zc/nfs /root/nfs