Skip to content
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

Add Proper Hostname Support #3725

Open
wants to merge 2 commits into
base: master-MC1.7.10
Choose a base branch
from

Conversation

PewPewCricket
Copy link

The seemingly half-baked lua code that is meant to handle hostnames in /boot/94_shell.lua does not work, I have moved hostname setting to /etc/profile.lua and it simply reads one line from /etc/hostname and sets $HOSTNAME to that, the default $HOSTNAME_SEPARATOR is now ": ", you can set your hostname by running this command: echo "hostname" > /etc/hostname

After changing you hostname to "foobar" using the above method, upon reloading of the shell, your new prompt would be: foobar: /home #

This is a very minor and easy improvement and i hope it will not be too much trouble to merge into OpenOS, I have tested this and it works on my OC systems in 1.7.10

@PewPewCricket
Copy link
Author

image
here is an image of a system with a hostname set to "SystemM"

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.

None yet

1 participant