+
Skip to content

Conversation

Mizumo-prjkt
Copy link

Added feature to check if DKMS is present in the system or not

Added this so people wont have to keep searching why the script is not working

Added feature to check if DKMS is present in the system or not
Comment on lines +5 to +10
if [ -n "$CHECK" ]
then
echo "DKMS Present, Istalling Anbox Modules"
else
echo "DKMS Did not respond, it seems that DKMS is not Present or you are not running in sudo/root mode"
echo "To make sure, please install dkms and try running the script again with sudo"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [ -n "$CHECK" ]
then
echo "DKMS Present, Istalling Anbox Modules"
else
echo "DKMS Did not respond, it seems that DKMS is not Present or you are not running in sudo/root mode"
echo "To make sure, please install dkms and try running the script again with sudo"
if ! [ -n "$CHECK" ]
then
>&2 echo "DKMS command not found, it seems that DKMS is not installed or you do not have permission to use it."
>&2 echo "Please install the dkms package from your distribution vendor and re-run this tool as root."

I don't think we need to explicitly state that we found DKMS, don't mind the quick reword

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载