Created
June 30, 2014 22:07
-
-
Save polera/0989ddc652e409024fd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
. /etc/rc.subr | |
name="updateissue" | |
start_cmd="${name}_start" | |
stop_cmd=":" | |
updateissue_start() | |
{ | |
echo "Updating /etc/issue" | |
ifconfig em0 | awk '/inet/ {print "\n\nSSH to this IP - " $2}' | cut -f2 -d: > /etc/issue | |
echo "Updated..." | |
} | |
load_rc_config $name | |
run_rc_command "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment