diff options
author | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-16 08:51:49 +0000 |
---|---|---|
committer | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-16 08:51:49 +0000 |
commit | 4d2aa0242d937da6b3431dbdb743a02669628023 (patch) | |
tree | 95c50d1cb2a5d191bdd3d2442c7e54ec09197977 /dhcp-model.lua | |
parent | e55b0315969af786d2aa56c915ed8f9a8161227e (diff) | |
download | acf-dhcp-4d2aa0242d937da6b3431dbdb743a02669628023.tar.bz2 acf-dhcp-4d2aa0242d937da6b3431dbdb743a02669628023.tar.xz |
/acf/dhcp: make sure the special hosts file is removed when its subnet pendant is removed
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@317 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-model.lua')
-rw-r--r-- | dhcp-model.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dhcp-model.lua b/dhcp-model.lua index ceb4390..b16124c 100644 --- a/dhcp-model.lua +++ b/dhcp-model.lua @@ -230,8 +230,9 @@ subnet_delete = function( name ) local msg = "" - local filename = cfgdir .. name .. ".subnet" - os.remove( filename ) + local filename = cfgdir .. name + os.remove( filename .. ".subnet" ) + os.remove( filename .. ".spechosts" ) return msg end |