You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
236 B
6 lines
236 B
#!/bin/bash
|
|
|
|
sed -ri 's/^(eth[0-9]: .*|)$//g; T; d' /etc/issue
|
|
echo >> /etc/issue
|
|
ip addr show scope global |sed -r 's/^.*inet ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\/[0-9]+ brd .* (eth[0-9])$/\2: \1/g; t; d' >> /etc/issue
|
|
echo >> /etc/issue
|
|
|