[arch-general] Set ip lan address /etc/environment
ralph at inputplus.co.uk
Wed May 30 11:20:05 UTC 2018
> $ source /etc/environment
> ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f 1)"
/etc/environment doesn't take code, just simple assignments.
Also see pam_env(8) and the rest of that wiki page.
More information about the arch-general