diff --git a/bundles/pppd/files/restart-pppoe-if-no-public-ip b/bundles/pppd/files/restart-pppoe-if-no-public-ip index 04e1fcd..fcd1864 100644 --- a/bundles/pppd/files/restart-pppoe-if-no-public-ip +++ b/bundles/pppd/files/restart-pppoe-if-no-public-ip @@ -16,7 +16,6 @@ except: last_restart = 0 if now-3600 < last_restart: - print('Last restart is less than an hour ago, exiting ...') exit(0) ifaces = set() @@ -41,6 +40,6 @@ if not system_has_public_ip: run(['systemctl', 'restart', 'pppoe']) with open('/var/tmp/pppd-last-restart.status', 'w') as f: - f.write(now) + f.write(str(now)) print('pppoe.service has been restarted')