fix dpkgdivert
This commit is contained in:
parent
24cd77335f
commit
ab5818b925
|
|
@ -101,8 +101,6 @@ echo -e "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
|
|||
chmod +x /usr/sbin/policy-rc.d
|
||||
rm -f /dpkgdivert
|
||||
EOF
|
||||
chmod +x $werdo/dpkgdivert
|
||||
sudo -E chroot $werdo/dpkgdivert || zerr
|
||||
elif [[ $watdo = off ]]; then
|
||||
cat <<EOF | sudo tee ${werdo}/dpkgdivert
|
||||
#!/bin/sh
|
||||
|
|
@ -111,9 +109,9 @@ rm -f /usr/sbin/invoke-rc.d
|
|||
dpkg-divert --remove --rename /usr/sbin/invoke-rc.d
|
||||
rm -f /dpkgdivert
|
||||
EOF
|
||||
chmod +x $werdo/dpkgdivert
|
||||
sudo -E chroot $werdo/dpkgdivert || zerr
|
||||
fi
|
||||
sudo chmod +x $werdo/dpkgdivert
|
||||
sudo -E chroot $werdo /dpkgdivert || zerr
|
||||
}
|
||||
|
||||
silly() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue