Jan 7, 2009

Motorola E2 /root/autorun.txt

/root/autorun.txt 文件内容:

#!/bin/sh


# 用户字体
if [ -f $MYFAVOR/myfont.ttf ]
then
    mount --bind $MYFAVOR/myfont.ttf /usr/language/fonts/AMCSL.TTF
fi

# 用户音量配置
if [ -f $MYFAVOR/ezx_volumetable.cfg ]
then
    mount --bind $MYFAVOR/ezx_volumetable.cfg /usr/SYSqtapp/sound/ezx_volumetable.cfg
    kill `pidof soundmanager`
fi

# 自动开关机
[ -f /ezxlocal/.autopower ] && /bin/autopower

# 脚本接口
for DIRS in $MYFAVOR $UNKNOWN $OTHERS $MYFAVOR/autorun $UNKNOWN/autorun $OTHERS/autorun $MMCA1/autorun
do
    [ ! -f $DIRS/startup.txt ] && continue
    . $DIRS/startup.txt &
done

for DIRS in $MYFAVOR $UNKNOWN $OTHERS $MYFAVOR/autorun $UNKNOWN/autorun $OTHERS/autorun $MMCA1/autorun
do
    [ ! -f $DIRS/startup.sh ] && continue
    chmod +x $DIRS/startup.sh
    $DIRS/startup.sh &
done

for DIRS in $MYFAVOR $UNKNOWN $OTHERS $MYFAVOR/autorun $UNKNOWN/autorun $OTHERS/autorun $MMCA1/autorun
do
    for FILES in $DIRS/S*
    do
        [ ! -f $FILES ] && continue
        chmod +x $FILES
        $FILES &
    done
done

# 多分区自动挂载
if [ -f /ezxlocal/.mmca6 ]
then
    mkdir -p --mode=777 $MMCA6
    mount -t ext3 /dev/mmca6 $MMCA6
    if [ "$?" != "0" ]
    then
        rm -rf $MMCA6
    fi
else
    rm -rf $MMCA6
fi

if [ -f /ezxlocal/.swap ]
then
    swapon /dev/mmca5
fi

# 重新载入SD端主题
/usr/SYSqtapp/systemsetup/sdthemesetup reload

/usr/data_resource/tools/incalladd//incalladd_loop.lin &

No comments:

Post a Comment

您的评论将使我blog更有动力~