Fix ip path checking and make 6scripts depend on kmod-ipv6 (#4085)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12953 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
57b7fb3f11
commit
886d18075f
@ -17,6 +17,7 @@ include $(INCLUDE_DIR)/package.mk
|
||||
define Package/6scripts
|
||||
SECTION:=ipv6
|
||||
CATEGORY:=IPv6
|
||||
DEPENDS:=+kmod-ipv6
|
||||
TITLE:=IPv6 scripts
|
||||
endef
|
||||
|
||||
|
@ -46,11 +46,7 @@ stop_service() {
|
||||
ip tunnel del $tnlifname
|
||||
}
|
||||
start() {
|
||||
if ! [ -f /proc/net/if_inet6 ]; then
|
||||
echo "IPv6 not enabled, install kmod-ipv6";
|
||||
exit 1;
|
||||
fi
|
||||
if ! [ -x /sbin/ip ]; then
|
||||
if ! [ -x /usr/sbin/ip ]; then
|
||||
echo "ip is required to setup the tunnel";
|
||||
exit 1;
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user