From dce2f955bd6aa667bec3455f02185b880c4d1668 Mon Sep 17 00:00:00 2001 From: Alan Noble Date: Mon, 23 Apr 2018 06:52:39 +0000 Subject: [PATCH] add startup script --- startup/rc.local | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 startup/rc.local diff --git a/startup/rc.local b/startup/rc.local new file mode 100755 index 00000000..7d39ed7c --- /dev/null +++ b/startup/rc.local @@ -0,0 +1,20 @@ +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. +# +# By default this script does nothing. + +# Print the IP address +_IP=$(hostname -I) || true +if [ "$_IP" ]; then + printf "My IP address is %s\n" "$_IP" +fi + +exit 0