|
残翼之雁
发表于 2019-12-13 17:46
来自 中国湖南长沙
run.sh应该改成如下方式
#/bin/ash
tar -xvjf ./package.tar.bz2
cp ./package/bin/* /bin/
chmod +x /bin/dpkg
chmod +x /bin/ldconfig
chmod +x /bin/ldconfig.real
chmod +x /bin/start-stop-daemon
chmod +x /bin/add-shell
chmod +x /bin/update-rc.d
chmod +x /bin/which
chmod +x /bin/getent
cp ./package/lib/* /usr/lib/
dpkg -i --no-debsig --force-all ./package/deb/*
cp ./package/source/sources.list /etc/apt/
apt-get update
cp /etc/dpkg/dpkg.cfg /etc/dpkg/dpkg.cfg.old
echo "no-debsig" >> /etc/dpkg/dpkg.cfg
apt-get -f -y install
echo "utmp:x:43:" >>/etc/group
echo "mail:x:8:" >>/etc/group
rm -rf /bin
mkdir /bin
/usr/bin/cp /usr/bin/* /bin
chmod 4755 /bin/sudo
chmod 4755 /bin/rsync
chmod 4755 /bin/fusermount
chmod 4755 /bin/scriptindex |
|