diff options
Diffstat (limited to 'autoinstall/bootstrap/issue.txt')
-rw-r--r-- | autoinstall/bootstrap/issue.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autoinstall/bootstrap/issue.txt b/autoinstall/bootstrap/issue.txt new file mode 100644 index 0000000..c3c3135 --- /dev/null +++ b/autoinstall/bootstrap/issue.txt @@ -0,0 +1,8 @@ +#!/bin/bash + +# Add IP address to /etc/issue +cat > /etc/rc.local << EOF +sed -i "2 c\\ + \$(ip addr sh dev eth0 | grep -E '^\s+inet\s' | awk '{print \$2}')" /etc/issue +exit 0 +EOF |