add vstarcam c43s(b)

This commit is contained in:
cronyx
2024-04-01 23:20:00 +03:00
parent 046ad8cc1e
commit 01b6a4bc3e
6 changed files with 194 additions and 0 deletions
@@ -0,0 +1,14 @@
#!/bin/sh
set_gpio() {
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
sleep 1
}
if [ "$1" = "mt7601sta-generic" ]; then
set_gpio 16 1
modprobe mt7601sta
exit 0
fi
exit 1
@@ -0,0 +1,27 @@
#!/bin/sh
#
# Perform basic settings on a known IP camera
#
#
# Set custom upgrade url
#
fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/ssc333_lite_vstarcam-c43s_b-nor.tgz'
#
#
# Set custom majestic settings
#
#cli -s .nightMode.enabled true
#cli -s .nightMode.irCutPin1 78
#cli -s .nightMode.backlightPin 14
#cli -s .nightMode.colorToGray true
#cli -s .audio.speakerPin 61
cli -s .video0.codec h264
#
#
# Set wlan device and credentials if need
#
fw_setenv wlandev mt7601sta-generic
#fw_setenv wlanssid Router
#fw_setenv wlanpass 12345678
exit 0