Created
March 3, 2019 01:34
-
-
Save rmoriz/5311fe0054d4133a5353764310193ce5 to your computer and use it in GitHub Desktop.
Chinese Webcam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
/bin/mount -a | |
echo " | |
############################## | |
# # | |
# GWELL IPC SYSTEM # | |
# # | |
############################## | |
" | |
for initscript in /etc/init.d/S[0-9][0-9]* | |
do | |
if [ -x $initscript ] ; | |
then | |
echo "[RCS]: $initscript" | |
$initscript | |
fi | |
done | |
## 1. file system init | |
mke2fs /dev/ram0 | |
mount /dev/ram0 /mnt/ramdisk | |
cp -R /etc/* /mnt/ramdisk | |
mount /mnt/ramdisk/ /etc | |
mount /mnt/ramdisk/ /tmp | |
mount -t jffs2 /dev/mtdblock3 /rom | |
mount -t jffs2 /dev/mtdblock4 /npc | |
passwd -d root | |
## 2. external device driver init | |
insmod /usr/lib/gpio.ko | |
insmod /usr/lib/gpioi2c.ko | |
insmod /usr/lib/key.ko | |
insmod /usr/lib/rtc.ko | |
insmod /usr/lib/uart.ko | |
insmod /usr/lib/dsa.ko | |
insmod /usr/lib/ir.ko | |
insmod /usr/lib/uart1.ko | |
## 3.wifi | |
#insmod /usr/lib/compat.ko | |
#insmod /usr/lib/ath.ko | |
#insmod /usr/lib/ath9k_hw.ko | |
#insmod /usr/lib/ath9k_common.ko | |
#insmod /usr/lib/ath9k_htc.ko | |
## 3.wifi 7601 | |
insmod /usr/lib/mt7601Usta_v2.ko | |
## 4.hi lib | |
/usr/hilib/load3518e -i ov9712 | |
## 5. startup | |
/usr/bin/startup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment