Hot answers tagged startup-scripts
I've done this in the past by editing /etc/issue. The following script runs on boot, which detects the current IP and then adds it to /etc/issue: #!/bin/sh # Save this file as /etc/network/if-up.d/mod-etc-issue and chmod +x if [ "$METHOD" = loopback ]; then exit 0 fi # Only run from ifup. if [ "$MODE" != start ]; then exit 0 fi IPADDR=`ip a s ...
Only top voted, non community-wiki answers of a minimum length are eligible