From ce460a5fac44895e95c2a87f048e3c525487cdf7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 1 Feb 2009 19:46:52 +0000 Subject: * Add start and stop functions. * Start avahi after save --- packages/avahi/avahi.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'packages/avahi') diff --git a/packages/avahi/avahi.inc b/packages/avahi/avahi.inc index 0c18a075..01e94259 100644 --- a/packages/avahi/avahi.inc +++ b/packages/avahi/avahi.inc @@ -29,6 +29,14 @@ POSSIBILITY OF SUCH DAMAGE. */ +function start_avahi() { + exec("sh /usr/local/etc/rc.d/avahi-daemon.sh start"); +} + +function stop_avahi() { + exec("sh /usr/local/etc/rc.d/avahi-daemon.sh stop"); +} + function delete_avahi() { global $g, $config; unlink_if_exists("/usr/local/etc/rc.d/avahi-daemon.sh"); @@ -159,7 +167,7 @@ EOF; ); // Make image RO conf_mount_ro(); - + start_avahi(); } -?> \ No newline at end of file +?> -- cgit v1.2.3