diff options
Diffstat (limited to 'sh.NetBSD')
-rw-r--r-- | sh.NetBSD/.gitignore | 2 | ||||
-rw-r--r-- | sh.NetBSD/Makefile | 6 | ||||
-rw-r--r-- | sh.NetBSD/ifwatchd-carrier.sh.in | 5 | ||||
-rw-r--r-- | sh.NetBSD/ifwatchd-nocarrier.sh.in | 5 |
4 files changed, 18 insertions, 0 deletions
diff --git a/sh.NetBSD/.gitignore b/sh.NetBSD/.gitignore new file mode 100644 index 00000000..cb05fa78 --- /dev/null +++ b/sh.NetBSD/.gitignore @@ -0,0 +1,2 @@ +ifwatchd-carrier.sh +ifwatchd-nocarrier.sh diff --git a/sh.NetBSD/Makefile b/sh.NetBSD/Makefile new file mode 100644 index 00000000..c93922bd --- /dev/null +++ b/sh.NetBSD/Makefile @@ -0,0 +1,6 @@ +DIR= ${RC_LIB}/sh +SRCS= ifwatchd-carrier.sh.in ifwatchd-nocarrier.sh.in +BIN= ifwatchd-carrier.sh ifwatchd-nocarrier.sh + +MK= ../mk +include ${MK}/scripts.mk diff --git a/sh.NetBSD/ifwatchd-carrier.sh.in b/sh.NetBSD/ifwatchd-carrier.sh.in new file mode 100644 index 00000000..4537b370 --- /dev/null +++ b/sh.NetBSD/ifwatchd-carrier.sh.in @@ -0,0 +1,5 @@ +#!@SHELL@ +# Wrapper for ifwatchd(8) + +export IN_BACKGROUND=yes +@PREFIX@@SYSCONFDIR@/init.d/net.$1 --quiet start diff --git a/sh.NetBSD/ifwatchd-nocarrier.sh.in b/sh.NetBSD/ifwatchd-nocarrier.sh.in new file mode 100644 index 00000000..d8168688 --- /dev/null +++ b/sh.NetBSD/ifwatchd-nocarrier.sh.in @@ -0,0 +1,5 @@ +#!@SHELL@ +# Wrapper for ifwatchd(8) + +export IN_BACKGROUND=yes +@PREFIX@@SYSCONFDIR@/init.d/net.$1 --quiet stop |