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

This blog focuses on the modified bootscript4-3.sh for running Linux on Android, specifically Ubuntu 12.04-v4-core, on a Samsung N7100 device with Android 4.3. The author discusses the testing environment and the issue found in the original script, providing a corrected version that works on the tested device." 51868548,5659880,使用LaTeX撰写实验报告指南,"['前端开发', 'Markdown', '文档编辑', '学术写作', '排版']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值