summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/init-d/maintainer-script/scripts-calls-init-script/build-spec/orig/test-first
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/init-d/maintainer-script/scripts-calls-init-script/build-spec/orig/test-first')
-rwxr-xr-xt/recipes/checks/init-d/maintainer-script/scripts-calls-init-script/build-spec/orig/test-first6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/recipes/checks/init-d/maintainer-script/scripts-calls-init-script/build-spec/orig/test-first b/t/recipes/checks/init-d/maintainer-script/scripts-calls-init-script/build-spec/orig/test-first
new file mode 100755
index 0000000..5019218
--- /dev/null
+++ b/t/recipes/checks/init-d/maintainer-script/scripts-calls-init-script/build-spec/orig/test-first
@@ -0,0 +1,6 @@
+#!/bin/sh
+if which invoke-rc.d >/dev/null 2>&1 ; then
+ invoke-rc.d ntp restart
+else
+ /etc/init.d/ntp restart
+fi