[arch-general] Set ip lan address /etc/environment
Maykel Franco
maykeldebian at gmail.com
Wed May 30 11:07:59 UTC 2018
Hi, I put this text in /etc/environment:
$ source /etc/environment
ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d
' ' -f 1)"
$ echo $ip
192.168.0.33
Works fine, but when I reboot my archlinux:
$ echo $ip
$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f 1)
What's happened?? Is necessary exec source /etc/environment after every reboot?
Thanks in advanced.
More information about the arch-general
mailing list