diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-06-30 21:48:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-06-30 21:48:29 +0000 |
commit | 6f20377b6fdf63cccc433ed684fbf91430c57a40 (patch) | |
tree | df48d485be4319b2d53a6bbb943cc07cffdceab3 /etc | |
parent | d739dbe9cc205ad0cfd08f7075bc16ff1b94fed9 (diff) | |
download | pfsense-6f20377b6fdf63cccc433ed684fbf91430c57a40.zip pfsense-6f20377b6fdf63cccc433ed684fbf91430c57a40.tar.gz |
Correctly move upnp to base since LiveCD cannot write files to /usr/local/etc or /usr/local/etc/rc.d/
Ticket #1342
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 6 | ||||
-rwxr-xr-x | etc/rc.bootup | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index c268f98..4bc0d1f 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1272,4 +1272,10 @@ function configure_cron() { conf_mount_ro(); } +function upnp_start() { + if($config['installedpackages']['miniupnpd']['config'][0]["enable"]) { + mwexec_bg("/usr/local/sbin/miniupnpd -f /var/etc/miniupnpd.conf"); + } +} + ?>
\ No newline at end of file diff --git a/etc/rc.bootup b/etc/rc.bootup index 7a00960..7d1bafd 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -317,6 +317,8 @@ mwexec("sysctl net.inet.tcp.sendspace=4096"); } + upnp_start(); + /* done */ unlink("{$g['varrun_path']}/booting"); $g['booting'] = FALSE; |