These are called "variables". They receive their value from command inside the script. If you say a=Astaro then type cat a, the output will be Astaro ! ! ! Make sure that the files are executable. There is an issue where the updateip has to not have blannk line in it. Use pico or vi or something else if you have to change it. Edit the file to reflect your environment.
As I told before, these are variable, they are not files. They are simply there to gather the result from a command.
Here how again ! Let say the following :
a=1 b=2
c=$a+$b
if you then do :
cat $c
the result will be 3
The $ tell the system to usr the variable, not the letter by itself.
So, in the case off dhcp, the script temporaly store the ip address, the mask ant the gateway and use those result, stored in the variables, to put it in the files trough the echo command ! ! !
As I told before, these are variable, they are not files. They are simply there to gather the result from a command.
Here how again ! Let say the following :
a=1 b=2
c=$a+$b
if you then do :
cat $c
the result will be 3
The $ tell the system to usr the variable, not the letter by itself.
So, in the case off dhcp, the script temporaly store the ip address, the mask ant the gateway and use those result, stored in the variables, to put it in the files trough the echo command ! ! !