summaryrefslogtreecommitdiff
path: root/autoinstall/bootstrap/issue.txt
blob: c3c313561c4eb7ae27a5074f92d27168866f5273 (plain)
1
2
3
4
5
6
7
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