Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help-[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chaos2025
n00b
n00b


Joined: 18 Sep 2006
Posts: 2
Location: Pierre

PostPosted: Mon Sep 18, 2006 5:37 pm    Post subject: help-[solved] Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Mon Sep 18, 2006 6:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
chaos2025
n00b
n00b


Joined: 18 Sep 2006
Posts: 2
Location: Pierre

PostPosted: Mon Sep 18, 2006 7:56 pm    Post subject: Reply with quote

Nothing right now..... Thanks for the help tho!

Chaos
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum