fixed exists /dev/sfe_ipv6

如果/dev/sfe_ipv6字符设备不存在,则创建该设备
This commit is contained in:
Candoit 2018-08-02 23:59:08 +08:00 committed by GitHub
parent db75f73a54
commit c376bb764b
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