aboutsummaryrefslogtreecommitdiff
path: root/examples/etc/ninit/ilian/run
diff options
context:
space:
mode:
Diffstat (limited to 'examples/etc/ninit/ilian/run')
-rwxr-xr-xexamples/etc/ninit/ilian/run15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/etc/ninit/ilian/run b/examples/etc/ninit/ilian/run
new file mode 100755
index 0000000..c0e729d
--- /dev/null
+++ b/examples/etc/ninit/ilian/run
@@ -0,0 +1,15 @@
+#!/bin/dash
+
+cd z || exit 1
+# rm -f ping.log
+ping -c 3 78.90.92.40
+
+if test $? -ne 0 ; then
+ test -f netBAD && exit 0
+ echo "Neta sprya: `date`" | mail ilian
+ > netBAD
+else
+ test -f netBAD || exit 0
+ echo "Neta doide: `date`" | mail ilian
+ rm -f netBAD
+fi