diff options
author | plunky <plunky@pkgsrc.org> | 2010-12-01 19:28:25 +0000 |
---|---|---|
committer | plunky <plunky@pkgsrc.org> | 2010-12-01 19:28:25 +0000 |
commit | 647b66f39cb552e8f1fc449cf4037c9382b14813 (patch) | |
tree | 83a49d7eef589c8a1e783844c2f89e428adbbcef /comms/obexapp/files | |
parent | 5179a19aca27c84c26eaf89b6a342675105e53ac (diff) | |
download | pkgsrc-647b66f39cb552e8f1fc449cf4037c9382b14813.tar.gz |
update rc.d script: it is now optional to specify the RFCOMM channel
(bump PKGREVISION)
Diffstat (limited to 'comms/obexapp/files')
-rw-r--r-- | comms/obexapp/files/obexapp.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/comms/obexapp/files/obexapp.sh b/comms/obexapp/files/obexapp.sh index 1cc3619246f..fa1d92986b4 100644 --- a/comms/obexapp/files/obexapp.sh +++ b/comms/obexapp/files/obexapp.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: obexapp.sh,v 1.1 2007/03/01 21:39:09 plunky Exp $ +# $NetBSD: obexapp.sh,v 1.2 2010/12/01 19:28:27 plunky Exp $ # # PROVIDE: obexapp # REQUIRE: sdpd @@ -20,11 +20,11 @@ command="@PREFIX@/bin/${name}" load_rc_config ${name} -if @TEST@ -z "${obexapp_channel}"; then - err 1 "Must specify obexapp_channel" -fi +command_args="-s -S -r ${obexapp_pathname:-@VARBASE@/spool/obex}" -command_args="-s -S -C ${obexapp_channel} -r ${obexapp_pathname:-@VARBASE@/spool/obex}" +if @TEST@ "${obexapp_channel}"; then + command_args="${command_args} -C ${obexapp_channel}" +fi if @TEST@ "${obexapp_username}"; then command_args="${command_args} -u ${obexapp_username}" |