View previous topic :: View next topic |
Author |
Message |
chaos2025 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Sep 2006 Posts: 2 Location: Pierre
|
Posted: Mon Sep 18, 2006 5:37 pm Post subject: help-[solved] |
|
|
My son deleted some files when i was working on things the other day. I need some help in getting them working again. I was wondering if someone could post the script to or send me the script of /etc/int.d/hostname.
I also need help in making this work.
Thanks.
E-mail:
budah05@gmail.com
Last edited by chaos2025 on Sun Sep 24, 2006 4:17 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Mon Sep 18, 2006 6:02 pm Post subject: |
|
|
chaos2025,
Welcome to Gentoo
The script is called /etc/init.d/hostname - you have a typo in your post.
Code: | #!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need checkroot
}
start() {
if [[ -f /etc/hostname ]] ; then
ewarn "You should stop using /etc/hostname and use /etc/conf.d/hostname"
HOSTNAME="$(< /etc/hostname)"
fi
ebegin "Setting hostname to ${HOSTNAME}"
hostname "${HOSTNAME}"
eend $? "Failed to set the hostname"
}
| What other help do you need ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chaos2025 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Sep 2006 Posts: 2 Location: Pierre
|
Posted: Mon Sep 18, 2006 7:56 pm Post subject: |
|
|
Nothing right now..... Thanks for the help tho!
Chaos |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|