diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-02-01 19:46:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-02-01 19:46:52 +0000 |
commit | ce460a5fac44895e95c2a87f048e3c525487cdf7 (patch) | |
tree | 2fbed87236aabd3526c62685c2f75abe46f24b9c /packages | |
parent | cf01ef191a14490ddf6ac0ce039747f83ded879f (diff) | |
download | pfsense-packages-ce460a5fac44895e95c2a87f048e3c525487cdf7.tar.gz pfsense-packages-ce460a5fac44895e95c2a87f048e3c525487cdf7.tar.bz2 pfsense-packages-ce460a5fac44895e95c2a87f048e3c525487cdf7.zip |
* Add start and stop functions.
* Start avahi after save
Diffstat (limited to 'packages')
-rw-r--r-- | packages/avahi/avahi.inc | 12 |
1 files changed, 10 insertions, 2 deletions
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 +?> |