aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinc
diff options
context:
space:
mode:
authorapnar <jlukens@botch.com>2012-09-05 02:58:14 +0000
committerapnar <jlukens@botch.com>2012-09-05 02:58:14 +0000
commit02cc61cf610d14d07c8f954c6abe46107f9a8a42 (patch)
treec9c8306085781b01b813a33d5e272647c283243c /config/tinc
parentc9a0beb5db202299150a9771e7343046b52a7b24 (diff)
downloadpfsense-packages-02cc61cf610d14d07c8f954c6abe46107f9a8a42.tar.gz
pfsense-packages-02cc61cf610d14d07c8f954c6abe46107f9a8a42.tar.bz2
pfsense-packages-02cc61cf610d14d07c8f954c6abe46107f9a8a42.zip
fix uninstall
Diffstat (limited to 'config/tinc')
-rw-r--r--config/tinc/tinc.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/tinc/tinc.inc b/config/tinc/tinc.inc
index 4fbfcbb5..ea495e9f 100644
--- a/config/tinc/tinc.inc
+++ b/config/tinc/tinc.inc
@@ -148,9 +148,11 @@ function tinc_deinstall() {
mwexec("/sbin/ifconfig {$realif} -group " . $a_ifgroups[$_GET['id']]['ifname']);
}
unset($a_ifgroups[$myid]);
- mwexec("/bin/rm -f /tmp/config.cache");
- write_config();
}
+ mwexec("/bin/rm -f /tmp/config.cache");
+ write_config();
+ conf_mount_ro();
+ config_unlock();
rmdir_recursive("/var/tmp/tinc");
rmdir_recursive("/usr/local/etc/tinc*");