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