Update FixAptIssues

This commit is contained in:
Josh North 2014-11-10 12:42:06 -05:00
parent a7cda303ef
commit 6e5066d356

View File

@ -1 +1,12 @@
invoke-rc.d udev restart
#!/bin/bash
# this fixes debconf apt postinst issues - udev and others as I find them
# NOTE - I know this is hackoriffic fix but it works. Systemd is not terribly happy about it
# and you Ubuntu guys probably hate this but something is seriously broken and this (at least temporarily) fixes it.
# is udev broken? if so, fix it
if grep -q "invoke-rc.d udev restart" /var/lib/dpkg/info/udev.postinst; then
sed -i 's/invoke-rc.d udev restart/service udev restart/g' /var/lib/dpkg/info/udev.postinst
fi
echo "All done. You should *probably* reboot your system now since we are messing with important system services."
exit