linuxonandroid ubuntu12.04-v4-core启动文件(N7100 Android 4.3)

linuxonandroid ubuntu12.04-v4-core启动文件(N7100 Android 4.3)

一. 测试环境

环境的搭建不再详述。

二. 修改后的bootscript4-3.sh

官网的脚本bootscript.sh,经本人测试,在N7100 Android4.3上有点小问题。
在官网的脚本基础上,修改了存储卡的名字为手机上显示的实际名字。测试可以正常使用。
全部代码如下:

###########################################
# Linux boot script V8.1                  #
#               for N7100  Android v4.3   #
# Built by Zachary Powell (zacthespack)   #
# and Martin Møller (Tuxling)             #
# Thanks to:                              #
# Johan Vromans                           #
# Marshall Levin                          #
# Vaykadji
# shile                                   #
# and to everyone at XDA!                 #
# Feel free to edit/use this script as you#
# like but credit Linuxonandroid.org      #
###########################################
# $ver: V8.1 for N7100  Android v4.3      #
###########################################


###########################################
# This is a function we use to stop the   #
# script in case of errors                #
###########################################
error_exit() {
    echo "Error: $1"
    exit 1
}


###########################################
# Set up variables                        #
###########################################
if [ -f /data/data/com.zpwebsites.linuxonandroid/files/busybox ]; then
        export bbox=/data/data/com.zpwebsites.linuxonandroid/files/busybox
elif [ -f /data/data/com.zpwebsites.linuxonandroid.opensource/files/busybox ]; then
        export bbox=/data/data/com.zpwebsites.linuxonandroid.opensource/files/busybox
else
    export bbox=/system/xbin/busybox
fi

export usermounts=android   # Base folder all user mounts are done in, should be moved to app later
export imgfile=$(dirname $0)/ubuntu.img    # Default image file, another can be set by using an argument
export bin=/system/bin
export mnt=/data/local/mnt
export USER=root
if [[ ! -d $mnt ]]; then mkdir $mnt; fi
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root

###########################################
# Handle arguments if present             #
###########################################
if [ $# -ne 0 ]; then
    if [ -f $1 ]; then # Is full path present?
        imgfile=$1

    elif [ -f $(dirname $0)/$1 ]; then # Is only a filename present?
        imgfil
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值