suspend - pm-utils commands not working, because WIFI goes down before - Ask Ubuntu


we have hg commands in /etc/pm/sleep.d/00_update file:

#!/bin/bash  case "$1" in   hibernate|suspend)     hg -r /home/user/code add -x /home/user/code/**~     hg -r /home/user/code commit --addremove -m "label" -u user     hg -r /home/user/code push https://user:***@bitbucket.org/user/code     ;;   thaw|resume)     hg -r /home/user/code pull https://user:***@bitbucket.org/user/code     ;; esac 

they can't conclude pushing because system loses wifi connection before happens, after suspend signal. has been verified replacing them ping command; cannot operate either.

it doesn't interference other pm files, because first executed. these others: 00_update, 10_grub-common, 10_unattended-upgrades-hibernate, novatel_3g_suspend, , systemd folder contains dbus-org.freedesktop.avahi.service, sockets.target.wants, syslog.service, multi-user.target.wants, sysinit.target.wants. i'm wondering wifi sent off, , how can prevent until hg commands have completed.

note: restarting wifi before hg , off again doesn't valid solution me.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User