[luau] Re: Gnome doesn't load at bootup
Dean Fujioka
surfdean at hawaii.rr.com
Wed Mar 27 00:00:11 PST 2002
Ray and Steve,
Let me clarify. Originally,. the contents of /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
now, after running this script
hostname ""
echo '/bin/ipcalc --silent --hostname $(/sbin/ifconfig eth0 | sed -n -e
"s/^.*addr://g" -n -e "s/ Bcast.*//p")' >> /etc/sysconfig/network
/etc/init.d/network restart
the file /etc/sysconfig/network has this in it
NETWORKING=yes
HOSTNAME=localhost.localdomain
/bin/ipcalc --silent --hostname $(/sbin/ifconfig eth0 | sed -n -e
"s/^.*addr://g" -n -e "s/ Bcast.*//p")
/bin/ipcalc --silent --hostname $(/sbin/ifconfig eth0 | sed -n -e
"s/^.*addr://g" -n -e "s/ Bcast.*//p")
I think it is there twice because I ran the script again. I think I've got
the ' and ` mixed up maybe?
dean
----- Original Message -----
From: "Ray Strode" <halfline at hawaii.rr.com>
To: <luau at videl.ics.hawaii.edu>
Sent: Monday, March 25, 2002 7:47 PM
Subject: Re: [luau] Re: Gnome doesn't load at bootup
> >
> >
> >>>>echo '/bin/ipcalc --silent --hostname $(/sbin/ifconfig eth0 |
sed -n -e
> >>>>"s/^.*addr://g" -n -e "s/ Bcast.*//p")' >> /etc/sysconfig/network
> >>>>
> >this part, however seemed to send everything within the single quotes,
i.e.
> >/bin/ipcalc --silent --hostname $(/sbin/ifconfig eth0 | sed -n -e
> >"s/^.*addr://g" -n -e "s/ Bcast.*//p")
> >into the /etc/sysconfig/network file.
> >
> That was what it was supposed to do :-). The idea is it should run
> everytime the file is sourced.
> if your /etc/sysconfig/network file doesn't have HOSTNAME= (or if it has
> HOSTNAME="" or HOSTNAME="localhost") anywhere in it, then the redhat
> scripts should automatically produce a hostname based on a reverse
> lookup of your ip. For some reason, your system doesn't do that, so
> that line was to manaully make it do it.
>
> >i then tried typing it manually (before I just cut and pasted into an
> >executable file and ran it) but it gave me a prompt like this >
> >Maybe I typed it in wrong?
> >
> More than likely you forgot a closing quote or something.
>
> --Ray
>
> _______________________________________________
> LUAU mailing list
> LUAU at videl.ics.hawaii.edu
> http://videl.ics.hawaii.edu/mailman/listinfo/luau
>
More information about the LUAU
mailing list