summaryrefslogtreecommitdiffstats
path: root/interfaces-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-13 14:57:17 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-13 14:57:17 +0000
commit303266d5fc5c1463a2aeecb2b4cc801b81ddfb06 (patch)
tree0d12b6360ddf38501b125388d4a0a29729449d2a /interfaces-model.lua
parentea59dcbdbed15ca5bd60f50cd8107451e74928dd (diff)
downloadacf-alpine-baselayout-303266d5fc5c1463a2aeecb2b4cc801b81ddfb06.tar.bz2
acf-alpine-baselayout-303266d5fc5c1463a2aeecb2b4cc801b81ddfb06.tar.xz
Added Restart Networking function to interfaces. Redirect to read after update.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1553 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'interfaces-model.lua')
-rw-r--r--interfaces-model.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/interfaces-model.lua b/interfaces-model.lua
index 2617eee..8d4a32b 100644
--- a/interfaces-model.lua
+++ b/interfaces-model.lua
@@ -2,6 +2,7 @@
-- Copyright(c) 2007 N. Angelacos - Licensed under terms of GPL2
module (..., package.seeall)
+require("modelfunctions")
require("fs")
-- iface is a local (private) table with private methods for managing
@@ -491,3 +492,7 @@ get_addresses = function()
end
return cfe({ type="structure", value=retval, label="Interface IP Addresses" })
end
+
+restartnetworking = function()
+ return modelfunctions.startstop_service("networking", "restart")
+end