0 Members and 3 Guests are viewing this topic.
Hi Shaggy,Another possible option for preferences would be restricting the updates only to security updates.If someone is out and about and just wants to make sure possible security holes are closed, there wouldn't be the need to download a huge libre office update - if it's not a security patch of course
ping -c 1 8.8.8.8 2>&1 | grep "connect: Network is unreachable" &>/dev/null if [ $? = 1 ]; then echo Active else echo Not connected fi
# Kill off any package managers that may be runningif [ "$(pidof synaptic)" ]; then sudo killall -9 synapticfiif [ ! -z "$(pgrep gdebi-gtk)" ]; then killall -9 gdebi-gtkfi
function checklock () {# Checks for exclusive lock and wait until package managers are closedwhile fuser /var/lib/dpkg/lock 2>&1 >/dev/null ; do echo "# Waiting for other software managers to finish..." $"\n" if [ "$(pidof synaptic)" ]; then echo "# Please close any open package managers..." $"\nsynaptic" fi echo 1 sleep 1 echo 30 sleep 1 echo 60 sleep 1 if [ ! -z "$(pgrep gdebi-gtk)" ]; then echo "# Please close any open package managers..." $"\ngdebi-gtk" fi echo 95 sleep 1done | (if ! zenity --progress --title="$APPNAME - close any open package managers" --percentage=20 --auto-close;then killall $(basename $0); exit; fi)}checklock
now you are just teasing us....