mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-23 04:04:48 +08:00
Upgrade deprecated xl2tpd-control calling
This commit is contained in:
parent
17d91a4157
commit
69a1633e8a
@ -90,14 +90,6 @@ sudo ./install.sh
|
||||
|
||||
## 疑难解答
|
||||
|
||||
### 出现了 `xl2tpd-control error: no such command` 的情况
|
||||
|
||||
问题源于xl2tpd-control的命令参数列表更新。
|
||||
|
||||
可以先使用temp分支解决问题。
|
||||
|
||||
期待热心人士能够增加根据xl2tpd版本使用不同命令的功能。
|
||||
|
||||
### 出现了 `xl2tpd-control: command not found` 的提示但直接运行 `xl2tpd-control` 有效
|
||||
|
||||
出现这种情况通常是由于 `sudo` 的 `secure path` 被启用。
|
||||
|
||||
@ -115,14 +115,14 @@ EOF
|
||||
xl2tpd_connect() {
|
||||
echo "[INFO] try connecting $1"
|
||||
pkill xl2tpd-control > /dev/null
|
||||
xl2tpd-control connect $1 &
|
||||
xl2tpd-control connect-lac $1 &
|
||||
echo "[INFO] xl2tpd-control done"
|
||||
}
|
||||
|
||||
xl2tpd_disconnect() {
|
||||
echo "[INFO] try disconnecting $1"
|
||||
pkill xl2tpd-control > /dev/null
|
||||
xl2tpd-control disconnect $1 &
|
||||
xl2tpd-control disconnect-lac $1 &
|
||||
echo "[INFO] xl2tpd-control done"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user