Originally Posted by sgunf
@3dak: wonderful build. I'm still using your releases to provide SD/MAGLDR builds for Italian people.
Just one question: are you thinking to provide a PPP/RMNET switchable SD MIUI or it is difficult to implement it in your build?
it's easy to do it. two approaches, add ppp_mode=1 or 0 switch in config file and modify initrd.gz to read the config file and check the switch value then do something such as create or delete ppp file in folder /system
for instance, like this:
# read config file
if [ -f $config_file ]; then
config=`awk -v RS='\r\n' -v ORS=' ' 1 $config_file`
ppp_mode=`echo $config | grep -o '\bppp_mode=\w*' | sed 's/ppp_mode=//'`
# load default value
[ -z $ppp_mode ] && ppp_mode=0
# set ppp or rmnet
if [ $ppp_mode -eq 1 ] ; then
rm -f /system/ppp
anther approach is write a .sh script to create a ppp file in folder /system to open PPP mode or delete file: /system/ppp to switch to RMNET.
check /system/etc/init.d/02modules and you'll see and know why do it like that.
# Load CFQ/CIFS/EXT4/TUN for htc-kernel
if [ -f /system/ppp ]
echo "Not loading RMNET module as /system/ppp exists"
echo "Loading RMNET module as /system/ppp doesn't exist"
Recnelty I'm focusing on HD2 MIUI 2.3.3 migration from G7 or N1 2.3.3 Mod.