On Fri, 26 Jan 2001, maverick wrote:
> ----- Original Message -----
> From: "Peter Samuel" <[EMAIL PROTECTED]>
> To: "maverick" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, January 26, 2001 2:03 PM
> Subject: Re: [e-smith-devinfo] Turning monitor blanking off...
>
>
> > I've got it working as follows:
> >
> > mkdir -p /etc/e-smith/templates-custom/etc/inittab
> > echo "bl:7:once:/usr/bin/setterm -blank 0" \
> > > /etc/e-smith/templates-custom/etc/inittab/90noblank
> > /sbin/e-smith/expand-template /etc/inittab
> > /sbin/telinit -q
> >
>
>
> I copied/pasted the above options and received the following results:
>
>
> [root@e-smith /root]# mkdir -p /etc/e-smith/templates-custom/etc/inittab
> [root@e-smith /root]# echo "bl:7:once:/usr/bin/setterm -blank 0" \
> > /etc/e-smith/templates-custom/etc/inittab/90noblank
> bl:7:once:/usr/bin/setterm -blank 0
> /etc/e-smith/templates-custom/etc/inittab/90noblank
Something went wrong with your cut & paste here.
echo "bl:7:once:/usr/bin/setterm -blank 0" \
> /etc/e-smith/templates-custom/etc/inittab/90noblank
should have produced *no* output (and created the file 90noblank), not
produced the two lines:
echo "bl:7:once:/usr/bin/setterm -blank 0" \
> /etc/e-smith/templates-custom/etc/inittab/90noblank
Hint: leave out the \ if you are pasting onto a single line.
> [root@e-smith /root]# /sbin/e-smith/expand-template /etc/inittab
> [root@e-smith /root]# /sbin/telinit -q
> /sbin/telinit: invalid option -- q
> Usage: telinit 0123456SsQqAaBbCcUu
>
> I removed the '-' and manually ran:
> [root@e-smith /root]# /sbin/telinit q
Good catch.
>
> ...and that was it.
>
> Now, my question is - Was it supposed to create a file somewhere called
> "90noblank"?
Yes. But because you pasted \> instead of \[newline]> it didn't work
correctly.
> I don't have a complete understanding of the
> template-expansion system as of yet, since this is the first time I'm
> actually played with it. If it was supposed to create that file somewhere,
> it didn't. The /etc/e-smith/templates-custom/etc/inittab directory is just
> an empty directory.
>
> I'm going to try a reboot....
No, try the whole thing again.
> Okay. I've rebooted the machine and, believe it or not, the monitor still
> goes blank after about 10 minutes.
Indeed.
> I'm almost to the point of giving up now. :/
Don't give up. You're almost there. You were only one keystroke away!! :-)
Charlie Brady [EMAIL PROTECTED]
http://www.e-smith.org (development) http://www.e-smith.com (corporate)
Phone: +1 (613) 368 4376 or 564 8000 Fax: +1 (613) 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada