merged in changes from Revolution HD
This commit is contained in:
parent
914ebad4dd
commit
86bc02484b
@ -133,8 +133,10 @@ fi
|
||||
|
||||
|
||||
# load default value
|
||||
[ -z $ppp_mode ] && ppp_mode=0
|
||||
[ -z $sd_boost ] && sd_boost=0
|
||||
[ -z $a2sd_mode ] && a2sd_mode="none"
|
||||
[ -z $a2sd_mode ] && a2sd_mode="dalvik"
|
||||
[ -z $gps_zone ] && gps_zone="us"
|
||||
|
||||
echo "+++++++ MOUNTING MTD SYSTEM +++++++"
|
||||
# define partitions
|
||||
@ -181,6 +183,7 @@ if [ -d /sys/block/mmcblk0/mmcblk0p2 ] ; then
|
||||
echo "+++++++ Default a2sd ACTVATED +++++++" >> $init_log
|
||||
echo "+++++++ Default a2sd ACTVATED +++++++"
|
||||
rm -rf /data/.noa2sd
|
||||
rm -rf /data/.datasd
|
||||
touch /data/.dalvikcache
|
||||
fi
|
||||
|
||||
|
@ -426,7 +426,7 @@
|
||||
|
||||
service debuggerd /system/bin/debuggerd
|
||||
|
||||
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init
|
||||
service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0 nand_init
|
||||
socket rild stream 660 root radio
|
||||
socket rild-debug stream 660 radio system
|
||||
user root
|
||||
|
Binary file not shown.
@ -7,6 +7,6 @@ echo " ";
|
||||
echo "Visit ";
|
||||
echo " XDA-Developers ";
|
||||
echo " ";
|
||||
echo " -=MDJ=- ";
|
||||
echo " arif-ali ";
|
||||
echo " ";
|
||||
exit;
|
||||
|
56
build/system/etc/init.d/02recov
Executable file
56
build/system/etc/init.d/02recov
Executable file
@ -0,0 +1,56 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
cache_partition=`grep cache /proc/mtd | cut -d: -f1 | sed 's/mtd/mtdblock/'`
|
||||
mountpoint=`mount | grep ${cache_partition} | awk '{print $3}'`
|
||||
|
||||
# make / writeable so that I can modifications
|
||||
mount -o rw,remount /
|
||||
|
||||
if [ -h /cache ] ; then
|
||||
# /cache is a symbolic link
|
||||
mkdir /mnt/cache
|
||||
mount -t yaffs2 -o rw /dev/block/$cache_partition /mnt/cache
|
||||
if [ ! -d /mnt/cache/recovery ] ; then
|
||||
mkdir /mnt/cache/recovery
|
||||
mv /cache/recovery/* /mnt/cache/recovery/.
|
||||
fi
|
||||
rm -rf /cache/recovery
|
||||
ln -s /mnt/cache/recovery /cache/recovery
|
||||
elif [ -d /cache ] ; then
|
||||
# /cache is a directory
|
||||
if [ "$mountpoint" = "/cache" ] ; then
|
||||
# /cache is mounted in the right place
|
||||
# do nothing, other than permissions at the end of this script
|
||||
else
|
||||
# the block device is not mounted or, is mounted somewhere else
|
||||
umount ${mountpoint}
|
||||
mkdir /mnt/cache
|
||||
mount -t yaffs2 -o rw /dev/block/$cache_partition /mnt/cache
|
||||
if [ ! -d /mnt/cache/recovery ] ; then
|
||||
mkdir /mnt/cache/recovery
|
||||
mv /cache/recovery/* /mnt/cache/recovery/.
|
||||
fi
|
||||
rm -rf /cache/recovery
|
||||
umount /mnt/cache
|
||||
rmdir /mnt/cache
|
||||
mount -t yaffs2 -o rw /dev/block/$cache_partition /cache
|
||||
fi
|
||||
elif [ ! -e /cache ] ; then
|
||||
# the /cache doesn't exist
|
||||
mkdir /cache
|
||||
mount -t yaffs2 -o rw /dev/block/${cache_partition} /cache
|
||||
fi
|
||||
|
||||
# change permission to 0.0 so market place can access /cache
|
||||
chown 0.0 /cache
|
||||
if [ ! -e /cache/recovery ] ; then
|
||||
mkdir /cache/recovery
|
||||
fi
|
||||
|
||||
# change permission for recovery directory so
|
||||
# ROM Manager and CWM can access it
|
||||
chown 1000.2001 /cache/recovery
|
||||
chmod 0770 /cache/recovery
|
||||
|
||||
# back to read-only mode
|
||||
mount -o ro,remount /
|
@ -1,7 +1,6 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
chown 1001.1001 /dev/smd1;
|
||||
touch /etc/ppp/active;
|
||||
touch /etc/ppp/pap-secrets;
|
||||
touch /etc/ppp/chap-secrets;
|
||||
touch /etc/ppp/options.smd;
|
||||
@ -13,5 +12,18 @@ chown 0.0 /system/bin/pppd;
|
||||
chmod 4755 /system/bin/pppd;
|
||||
#/system/bin/pppd /dev/smd1 defaultroute;
|
||||
|
||||
# Create link for resolv.conf (generated by pppd)
|
||||
ln -s /etc/ppp/resolv.conf /etc/resolv.conf
|
||||
if [ -f /system/ppp ]
|
||||
then
|
||||
echo "PPP enabled, doing PPP specific stuff"
|
||||
|
||||
# Create link for resolv.conf (generated by pppd)
|
||||
ln -s /etc/ppp/resolv.conf /etc/resolv.conf
|
||||
|
||||
# Tweak kernel low memory handling
|
||||
echo 8 8 > /proc/sys/vm/lowmem_reserve_ratio
|
||||
echo 8192 > /proc/sys/vm/min_free_kbytes
|
||||
|
||||
else
|
||||
echo "PPP disbled, leaving things as they are"
|
||||
fi
|
||||
|
||||
|
@ -25,6 +25,8 @@ NAME=${LINKNAME:-"$1"}
|
||||
/bin/touch /etc/ppp/ppp0.pid
|
||||
/bin/chmod 777 /etc/ppp/ppp0.pid
|
||||
/bin/echo $(pidof pppd) > /etc/ppp/ppp0.pid
|
||||
echo "nameserver $DNS1" > /etc/ppp/resolv.conf
|
||||
echo "nameserver $DNS2" >> /etc/ppp/resolv.conf
|
||||
|
||||
/system/bin/setprop "net.$NAME.dns1" "$DNS1"
|
||||
/system/bin/setprop "net.$NAME.dns2" "$DNS2"
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
VER=2.5
|
||||
VER=2.5.1
|
||||
ROM=Froyo_Sense_Revolution
|
||||
|
||||
BUILD1_NAME=${ROM}_${VER}_CWM
|
||||
@ -166,7 +166,7 @@ createCWM()
|
||||
genInitrd
|
||||
popd > /dev/null 2>&1
|
||||
cp META-INF/com/google/android/updater-script.std META-INF/com/google/android/updater-script
|
||||
rm -rf system/etc/init.d/00setup
|
||||
rm -rf system/app/ROMManager.apk
|
||||
rm -rf ../${BUILD1_NAME}.zip
|
||||
echo -n "Creating CWM zip file ... "
|
||||
zip -9Dry -q ../${BUILD1_NAME}.zip *
|
||||
@ -219,12 +219,12 @@ genInitrd()
|
||||
pushd ${BUILD1}/boot/initrd > /dev/null 2>&1
|
||||
chmod 770 bin/*
|
||||
|
||||
if [[ "$1" == "LK" ]] ; then
|
||||
mv init.android init
|
||||
pushd sbin > /dev/null 2>&1
|
||||
ln -sf ../init ueventd
|
||||
popd > /dev/null 2>&1
|
||||
fi
|
||||
# if [[ "$1" == "LK" ]] ; then
|
||||
# mv init.android init
|
||||
# pushd sbin > /dev/null 2>&1
|
||||
# ln -sf ../init ueventd
|
||||
# popd > /dev/null 2>&1
|
||||
# fi
|
||||
|
||||
find .|cpio --quiet -H newc -o|gzip -9 -c - > ../initrd.gz
|
||||
|
||||
@ -250,11 +250,11 @@ echo
|
||||
|
||||
if [[ `echo $0 | grep createInitrd.sh` ]]; then
|
||||
|
||||
if [[ "$1" == "LK" ]] ; then
|
||||
genInitrd LK
|
||||
else
|
||||
#if [[ "$1" == "LK" ]] ; then
|
||||
# genInitrd LK
|
||||
#else
|
||||
genInitrd
|
||||
fi
|
||||
#fi
|
||||
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user