修改TUN模式环境适配服务

This commit is contained in:
崔一鸣
2019-09-07 21:33:02 +08:00
parent df2efb4f69
commit 15595a8313
5 changed files with 36 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ ExecStart=/bin/true
ExecStop=/bin/true
# start
ExecStartPost=/usr/sbin/ifconfig ${TFE_WATCHDOG_DEVICE} ${TFE_WATCHDOG_IP}
ExecStartPost=/usr/sbin/ip tuntap add dev ${TFE_DEVICE_DATA_INCOMING} mode tap
ExecStartPost=/usr/sbin/ifconfig ${TFE_DEVICE_DATA_INCOMING} up