move dhcpv6 support into luci-proto-6x4, rename luci-proto-6x4 to luci-proto-ipv6
[project/luci.git] / protocols / ipv6 / luasrc / model / network / proto_dhcpv6.lua
1 --[[
2 LuCI - Network model - dhcpv6 protocol extension
3
4 Copyright 2013 Jo-Philipp Wich <xm@subsignal.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 ]]--
19
20 local proto = luci.model.network:register_protocol("dhcpv6")
21
22 function proto.get_i18n(self)
23         return luci.i18n.translate("DHCPv6 client")
24 end
25
26 function proto.is_installed(self)
27         return nixio.fs.access("/lib/netifd/proto/dhcpv6.sh")
28 end
29
30 function proto.opkg_package(self)
31         return "ipv6-support"
32 end