-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Hush motd on login when using -c command #58
Comments
@cherryleafroad the feature you requested is implemented. Test and see if it is to your liking. Thanks for sharing and improving this project. Do not hesitate if you still see room for improvement 🥁 🔊 |
Works perfect, just one thing. Regarding this code in
The That's why we had to implement the removal of
In short, your
|
And one more important note, in the user login section, you left it touching the root users home directory instead of the user the person is trying to login to, which means that
|
It would be best to ignore the displaying of motd when (and only when) using the -c command.
I believe this can be best accomplished by modifying the .bashrc
. /etc/motd
to the following. This disables motd if we have a .hushlogin (this one is for the user to make if they want to permanently disable it) or .chushlogin file. The .chushlogin is only temporarily used to hush the motd when we run commands from startarch (it's removed after)And in the startarch script, when using -c, simply create the temporary file first
This is the best solution I found to this question. Hopefully it's elegant enough haha
The text was updated successfully, but these errors were encountered: