-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command not recognized #26
Comments
Hello, Can you give more information about our OS, and your RESOLVCONF? |
I am seeing the same problem on Ubuntu 17.04, RESOLVCONF=/usr/sbin/resolvconf . |
I have the same issue on Ubuntu 17.04. Removing -x flag remove the error. |
Please set the 'verb' to 4 or above, and then run the openvpn in terminal/console and then post the log to us. Filter out your sensitive information before posting. |
I've worked around this problem & am all set thanks |
Removing the |
I will need to fix this and check resolvconf versions. |
Hello! I'm getting the same error:
I can confirm that fix by
|
Same fix by @sheldonh for Ubuntu 18.04
|
I need to add some OS detection to this. |
The best way would be to verify that OS that the script is running on. Basically all the debian based images (Raspbian, Ubuntu, Debian) ships with a resolvconf that does not know this -x command. The accepted answer on stackoverflow can give some insight: https://unix.stackexchange.com/questions/6345/how-can-i-get-distribution-name-and-version-number-in-a-simple-shell-script When testing this on a a Ubuntu 18.04 server, echo ${OS} returns: With this, you can specify certain commands depending on a certain distro. If you want to really go nuts, you can also check the version with ${VER} |
Wouldn't the most surefire way be to detect the "version" of resolveconf being run, because the user may be using a different one as to what was originally shipped. For example on one of my Ubuntu 16.04 I'm running openresolv instead of the script originally shipped with the distro. |
My solution for Ubuntu 16.04 was to Edit: Which of course is mentioned in the README. 😅 |
yet in the script I see
$RESOLVCONF -x -a "${dev}.inet"
There is no -x flag above.
What's wrong?
The text was updated successfully, but these errors were encountered: