LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-05-2002, 08:27 AM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yet another question; TimeZone related


Oh man, I feel like an idiot! This is like the 3rd question tonight...

Ok, I was configuring my timezone and was reading the Time Hints Hint. I try to type in the bash script but always at the end it gives me:

bash: /etc/init.d/setclock: No such file or directory

And returns me to my bash prompt.

If this is NO BIG DEAL, then I won't worry about and move on, but if it is, can anyone tell me what to do? I will include the entire compile script at the end of this so you can see if maybe it was written wrong or something. Or if you want to see the whole HINT then you can click the link above. Thanks!

#################################################
cat >/etc/init.d/setclock <<EOF
#!/bin/sh
# Begin /etc/init.d/setclock

#
# Include the functions declared in the /etc/init.d/functions file
# and include the variables from the /etc/sysconfig/clock file
#

source /etc/init.d/functions
source /etc/sysconfig/clock

case "$1" in
start)
case "$UTC" in
yes|true|1)
/sbin/hwclock --hctosys --utc
;;
no|false|0)
/sbin/hwclock --hctosys --localtime
;;
*)
echo "Invalid value for UTC in /etc/sysconfig/clock: $UTC"
echo "Valid values for UTC are 1 and 0."
exit 1
;;
esac
;;
stop)
case "$UTC" in
yes|true|1)
/sbin/hwclock --systohc --utc
;;
no|false|0)
/sbin/hwclock --systohc --localtime
;;
*)
echo "Invalid value for UTC in /etc/sysconfig/clock: $UTC"
echo "Valid values for UTC are 1 and 0."
exit 1
;;
esac
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac

# End /etc/init.d/setclock
EOF

#######################################################

That's it
 
Old 06-05-2002, 10:04 AM   #2
kill-hup
Member
 
Registered: Aug 2000
Location: NY - USA
Distribution: Slackware
Posts: 109

Rep: Reputation: 15
Check to make sure "/bin/sh" exists and is executable.
 
Old 06-05-2002, 11:34 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Strange... It's sort of acting like root can't edit anything. I wonder if when I went back and added group root it changed stuff??
 
Old 06-05-2002, 12:42 PM   #4
kill-hup
Member
 
Registered: Aug 2000
Location: NY - USA
Distribution: Slackware
Posts: 109

Rep: Reputation: 15
What is the error when you try to open an editor? I guess which editor might also help

What do you mean "added group root"? Wasn't there already a "root/0" group when you installed Linux? I'm not extremely familiar with Mandrake (if that's what you're using), but I would assume they'd add the same default groups as others do.
 
Old 06-06-2002, 03:51 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
I was pretty vague wasn't I? I was getting "/etc/init.d/setclock: no such file or directory" Or something very close to that. I found that I didn't have my 'root:x:0' set. I was thinking I will have to go back and re-install all of my software because of that. But it is working, so I guess it's ok. Well, it's not actually working, but it finished everything fine, now I just need to figure out how to boot into it... (see other post)
 
Old 06-09-2002, 10:43 AM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
/etc/init.d/clock doesn't exist. This hint was written a long time ago and since that day, the bootscripts have changed in their naming structure. The file you're looking for is /etc/rc.d/init.d/setclock
 
Old 06-11-2002, 03:56 AM   #7
Baloo
Member
 
Registered: Feb 2002
Distribution: LFS
Posts: 41

Rep: Reputation: 15
Quote:
Originally posted by lfslinux
/etc/init.d/clock doesn't exist. This hint was written a long time ago and since that day, the bootscripts have changed in their naming structure. The file you're looking for is /etc/rc.d/init.d/setclock
Maybe Marc Heerdink needs a little nudge to update the hint. If needed I could update it or get in contact with Marc to get his permission to do it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot-related question. wombat53 Slackware 55 06-21-2005 12:37 PM
c related question. blackzone Programming 1 07-24-2004 08:55 AM
DNS related question tusher Linux - Newbie 1 12-07-2003 01:03 PM
DNS related question tusher Linux - Networking 1 12-01-2003 09:15 AM
Really Lame Timezone question Supp0rtLinux Linux - General 0 04-08-2002 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration