Bill, not quite,
you have turned it around to make it work !!
let me add more info
variablename=mode
now I want to set the variable mode to manual, but this does not work.
$variablename=manual
. You also have done the function returning using a global variable, I already have it working...
when the system boots it looks at the hostname.<interface>
i.e hostname.hme0
it then looks this up in the /etc/hosts file to get the IP address.
your ifconfig and hostname will only change it on a running system, as you have found, when you reboot they wil go !!
Ok this must be a quick one to answer
borne shell script:
x=y
$x=7
error
y=7
, how do i use the content of a variable as a name for a new variable?
also how do i return parameters from a function
i.e.
_read()
{
prompt=$1
temp=""
valid=0
while [ "$temp" = ""...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.