|
|
|
@ -87,10 +87,11 @@ class Processor:
|
|
|
|
|
f.write("exit 0\n")
|
|
|
|
|
|
|
|
|
|
# connection test
|
|
|
|
|
f.write("wget -q --spider cloudflare.com")
|
|
|
|
|
f.write("if [ $? != 0 ]; then")
|
|
|
|
|
f.write("echo 'No internet connection!'")
|
|
|
|
|
f.write("exit 1")
|
|
|
|
|
f.write("wget -q --spider cloudflare.com\n")
|
|
|
|
|
f.write("if [ $? != 0 ]; then\n")
|
|
|
|
|
f.write("echo 'No internet connection!'\n")
|
|
|
|
|
f.write("exit 1\n")
|
|
|
|
|
f.write("fi\n")
|
|
|
|
|
|
|
|
|
|
for command in commands:
|
|
|
|
|
if command.startswith("!nextBoot"):
|
|
|
|
|