busybox.prerm

来自「GPE内核镜像文件 已在qemu上跑过的」· PRERM 代码 · 共 22 行

PRERM
22
字号
	# This is so you can make busybox commit suicide - removing busybox with no other packages	# providing its files, this will make update-alternatives work, but the update-rc.d part	# for syslog, httpd and/or udhcpd will fail if there is no other package providing sh	tmpdir=`mktemp -d /tmp/busyboxrm-XXXXXX`	ln -s /bin/busybox $tmpdir/[	ln -s /bin/busybox $tmpdir/test	ln -s /bin/busybox $tmpdir/head	ln -s /bin/busybox $tmpdir/sh	ln -s /bin/busybox $tmpdir/basename	ln -s /bin/busybox $tmpdir/echo	ln -s /bin/busybox $tmpdir/mv	ln -s /bin/busybox $tmpdir/ln	ln -s /bin/busybox $tmpdir/dirname	ln -s /bin/busybox $tmpdir/rm	ln -s /bin/busybox $tmpdir/sed	ln -s /bin/busybox $tmpdir/sort	export PATH=$PATH:$tmpdir	while read link; do case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; bn=`basename $link`; sh /usr/bin/update-alternatives --remove $bn $to; done </etc/busybox.linksif test "x$D" = "x"; then	/etc/init.d/syslog stopfi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?