1 Star 0 Fork 0

layne/packages

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
entware_install_arm.sh 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
layne 提交于 2022-10-31 02:03 . update entware_install_arm.sh.
#!/bin/sh
echo "Info: Checking for prerequisites and creating folders..."
if [ -d /opt ]
then
echo "Warning: Folder /opt exists!"
else
mkdir /opt
fi
for folder in bin etc include lib sbin share tmp usr var
do
if [ -d "/opt/$folder" ]
then
echo "Warning: Folder /opt/$folder exists!"
echo "Warning: If something goes wrong please clean /opt folder and try again."
else
mkdir /opt/$folder
fi
done
[ -d "/opt/lib/opkg" ] || mkdir -p /opt/lib/opkg
[ -d "/opt/var/lock" ] || mkdir -p /opt/var/lock
[ -d "/opt/var/log" ] || mkdir -p /opt/var/log
[ -d "/opt/var/run" ] || mkdir -p /opt/var/run
echo "Info: Opkg package manager deployment..."
cd /opt/bin
wget https://gitee.com/isslayne/packages/raw/master/opkg
chmod +x /opt/bin/opkg
cd /opt/etc
wget https://gitee.com/isslayne/packages/raw/master/opkg.conf
cd /opt/lib
wget https://gitee.com/isslayne/packages/raw/master/ld-2.20.so
chmod +x ld-2.20.so
ln -s ld-2.20.so ld-linux.so.3
wget https://gitee.com/isslayne/packages/raw/master/libc-2.20.so
ln -s libc-2.20.so libc.so.6
echo "Info: Basic packages installation..."
/opt/bin/opkg update
/opt/bin/opkg install glibc-opt
if [ ! -f /opt/usr/lib/locale/locale-archive ]
then
wget https://gitee.com/isslayne/packages/raw/master/locale-archive -O /opt/usr/lib/locale/locale-archive
fi
echo "Info: Congratulations!"
echo "Info: If there are no errors above then Entware.arm successfully initialized."
echo "Info: Add /opt/bin & /opt/sbin to your PATH variable"
echo "Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware.arm services to start"
echo "Info: Found a Bug? Please report at https://github.com/zyxmon/entware-arm/issues"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/isslayne/packages.git
[email protected]:isslayne/packages.git
isslayne
packages
packages
master

搜索帮助