mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-09 23:18:20 +00:00
fix module loading
This commit is contained in:
parent
be160e323e
commit
23c3b926da
@ -124,11 +124,16 @@ sed -i '/system\/\lib/s/$/:\/opt\/wz_mini\/lib/' /opt/wz_mini/tmp/.storage/rcS
|
||||
#sed -i '/^# Run init script.*/i#Hook Library PATH here\nexport LD_LIBRARY_PATH=/tmp/test/lib:$LD_LIBRARY_PATH\n' /opt/wz_mini/tmp/.storage/rcS
|
||||
#sed -i '/^# Run init script.*/i#Hook system PATH here\nexport PATH=/tmp/test/bin:$PATH\n' /opt/wz_mini/tmp/.storage/rcS
|
||||
|
||||
if [[ "$V2" == "true" ]]; then
|
||||
mount -t jffs2 /dev/mtdblock4 /system
|
||||
fi
|
||||
|
||||
echo "Copy factory app_init.sh"
|
||||
cp /system/init/app_init.sh /opt/wz_mini/tmp/.storage/app_init.sh
|
||||
|
||||
echo "Replace factory app_init.sh path"
|
||||
sed -i '/Run init script.*/a /opt/wz_mini/tmp/.storage/app_init.sh' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/\/system\/init\/app_init.sh/,+4d' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/Run init script.*/a /opt/wz_mini/tmp/.storage/app_init.sh\n' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/\/system\/init\/app_init.sh/,+2d' /opt/wz_mini/tmp/.storage/rcS
|
||||
|
||||
echo "replace stock password"
|
||||
|
@ -49,8 +49,13 @@ fi
|
||||
## REPLACE STOCK MODULES
|
||||
|
||||
if [[ "$ENABLE_RTL8189FS_DRIVER" == "true" ]]; then
|
||||
#V2/V3 ONLY
|
||||
echo "Enable RTL8189FS"
|
||||
sed -i 's/\/system\/driver\/rtl8189ftv.ko/\/opt\/8189fs_wz.ko rtw_power_mgnt=0 rtw_enusbss=0/g' /opt/wz_mini/tmp/.storage/app_init.sh
|
||||
if [[ "$V2" == "true" ]]; then
|
||||
sed -i 's/\/driver\/rtl8189ftv.ko/\/opt\/wz_mini\/lib\/modules\/3.10.14\/extra\/8189fs.ko rtw_power_mgnt=0 rtw_enusbss=0/g' /opt/wz_mini/tmp/.storage/app_init.sh
|
||||
else
|
||||
sed -i 's/\/system\/driver\/rtl8189ftv.ko/\/opt\/wz_mini\/lib\/modules\/3.10.14\_\_isvp_swan_1.0\_\_\/extra\/8189fs.ko rtw_power_mgnt=0 rtw_enusbss=0/g' /opt/wz_mini/tmp/.storage/app_init.sh
|
||||
fi
|
||||
fi
|
||||
|
||||
##RTSP SERVER INIT
|
||||
|
Loading…
Reference in New Issue
Block a user