cvs commit: src/etc/rc.d var
Brooks Davis
brooks at one-eyed-alien.net
Tue Mar 1 22:59:48 GMT 2005
On Tue, Mar 01, 2005 at 11:46:47PM +0100, Pawel Jakub Dawidek wrote:
> On Tue, Mar 01, 2005 at 10:08:15PM +0000, Brooks Davis wrote:
> +> brooks 2005-03-01 22:08:15 UTC
> +>
> +> FreeBSD src repository
> +>
> +> Modified files:
> +> etc/rc.d var
> +> Log:
> +> - Remove the dependency of /usr/bin/touch by using "cp /dev/null <target>"
> +> to create /var/log/lastlog.
>
> Isn't 'echo -n > <target>' a better choice?
Perhaps. I copied the example in etc/rc.d/cleanvar (except without the
lack of newlines). Sam suggested the even simpler ">target" which would
also work. I'm assuming you have a /bin since the line after the cp is
chmod so I'm not really worried. echo -n does have the advantage of
being slightly clearer. I'm not sure if this is worth changing or not.
-- Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050301/1f9b4e59/attachment.bin
More information about the cvs-src
mailing list