summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2010-03-18 13:57:26 +0000
committerMax Khon <fjoe@FreeBSD.org>2010-03-18 13:57:26 +0000
commitc21b25560323213bdf2d449235c321b56d70945e (patch)
tree9dc7687515d781aed5ac46242698068cea261b4c /misc
parent- Update to 1.2 (diff)
Fix getting dahdi_enable value in rc.d script.
Notes
Notes: svn path=/head/; revision=251207
Diffstat (limited to 'misc')
-rw-r--r--misc/dahdi-kmod/Makefile2
-rw-r--r--misc/dahdi-kmod/files/dahdi.in5
-rw-r--r--misc/dahdi/Makefile2
-rw-r--r--misc/dahdi/files/dahdi.in5
4 files changed, 10 insertions, 4 deletions
diff --git a/misc/dahdi-kmod/Makefile b/misc/dahdi-kmod/Makefile
index b5b221246ebf..71ce4c4caa9a 100644
--- a/misc/dahdi-kmod/Makefile
+++ b/misc/dahdi-kmod/Makefile
@@ -7,7 +7,7 @@
PORTNAME= dahdi
PORTVERSION= ${DAHDI_VERSION:S/-//g}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= misc kld
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= fjoe
diff --git a/misc/dahdi-kmod/files/dahdi.in b/misc/dahdi-kmod/files/dahdi.in
index 7bbcece0f891..ad50745924f2 100644
--- a/misc/dahdi-kmod/files/dahdi.in
+++ b/misc/dahdi-kmod/files/dahdi.in
@@ -23,12 +23,15 @@
. %%RC_SUBR%%
name="dahdi"
+rcvar=`set_rcvar`
+
start_cmd="dahdi_start"
stop_cmd="dahdi_stop"
load_rc_config $name
+: ${dahdi_enable="NO"}
+: ${dahdi_modules="dahdi"}
kmod_dir=%%PREFIX%%/lib/dahdi
-dahdi_modules=${dahdi_modules:-dahdi}
# reverse list
dahdi_modules_unload=""
for m in ${dahdi_modules}; do
diff --git a/misc/dahdi/Makefile b/misc/dahdi/Makefile
index b5b221246ebf..71ce4c4caa9a 100644
--- a/misc/dahdi/Makefile
+++ b/misc/dahdi/Makefile
@@ -7,7 +7,7 @@
PORTNAME= dahdi
PORTVERSION= ${DAHDI_VERSION:S/-//g}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= misc kld
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= fjoe
diff --git a/misc/dahdi/files/dahdi.in b/misc/dahdi/files/dahdi.in
index 7bbcece0f891..ad50745924f2 100644
--- a/misc/dahdi/files/dahdi.in
+++ b/misc/dahdi/files/dahdi.in
@@ -23,12 +23,15 @@
. %%RC_SUBR%%
name="dahdi"
+rcvar=`set_rcvar`
+
start_cmd="dahdi_start"
stop_cmd="dahdi_stop"
load_rc_config $name
+: ${dahdi_enable="NO"}
+: ${dahdi_modules="dahdi"}
kmod_dir=%%PREFIX%%/lib/dahdi
-dahdi_modules=${dahdi_modules:-dahdi}
# reverse list
dahdi_modules_unload=""
for m in ${dahdi_modules}; do