summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-29 11:19:38 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-29 11:19:38 -0200
commitd12ae2414c7e3bfd239699309ff571c716d070c9 (patch)
tree56743b122ee1adef98620098a1844492f2fb3657 /etc
parentb85507180303df9ac742835f6f809a7b6b68c99f (diff)
downloadpfsense-d12ae2414c7e3bfd239699309ff571c716d070c9.zip
pfsense-d12ae2414c7e3bfd239699309ff571c716d070c9.tar.gz
Fix wrong unset calls
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index fcefdb7..eb7132c 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3330,10 +3330,10 @@ function interface_dhcpv6_configure($interface = "wan") {
/* wide-dhcp6c works for now. */
if (!@file_put_contents("{$g['varetc_path']}/dhcp6c_{$interface}.conf", $dhcp6cconf)) {
printf("Error: cannot open dhcp6c_{$interface}.conf in interface_dhcpv6_configure() for writing.\n");
- unet($dhcp6cconf);
+ unset($dhcp6cconf);
return 1;
}
- unet($dhcp6cconf);
+ unset($dhcp6cconf);
$dhcp6cscript = "#!/bin/sh\n";
$dhcp6cscript .= "# This shell script launches /etc/rc.newwanipv6 with a interface argument.\n";
@@ -3341,10 +3341,10 @@ function interface_dhcpv6_configure($interface = "wan") {
/* Add wide-dhcp6c shell script here. Because we can not pass a argument to it. */
if (!@file_put_contents("{$g['varetc_path']}/dhcp6c_{$interface}_script.sh", $dhcp6cscript)) {
printf("Error: cannot open dhcp6c_{$interface}_script.sh in interface_dhcpv6_configure() for writing.\n");
- unet($dhcp6cscript);
+ unset($dhcp6cscript);
return 1;
}
- unet($dhcp6cscript);
+ unset($dhcp6cscript);
@chmod("{$g['varetc_path']}/dhcp6c_{$interface}_script.sh", 0755);
OpenPOWER on IntegriCloud