Merge pull request #496 from Cherisher/patch-1

fixed exists /dev/sfe_ipv6
This commit is contained in:
coolsnowwolf 2018-09-28 01:51:01 +08:00 committed by GitHub
commit 4e570bad9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ start(){
if [ $ipv6 -eq 1 ]; then
echo "ipv6"
sfe_ipv6=$(cat /sys/sfe_ipv6/debug_dev)
[ -f /dev/sfe_ipv6 ] && mknod /dev/sfe_ipv6 c $sfe_ipv6 0
[ ! -f /dev/sfe_ipv6 ] && mknod /dev/sfe_ipv6 c $sfe_ipv6 0
else
echo "no ipv6"
rm -f /dev/sfe_ipv6