summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/src/etc/init.d/rcS5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/src/etc/init.d/rcS b/package/base-files/src/etc/init.d/rcS
index 3bb7b80ce..b5afea57d 100755
--- a/package/base-files/src/etc/init.d/rcS
+++ b/package/base-files/src/etc/init.d/rcS
@@ -78,3 +78,8 @@ fi
esac
done
} |tee /dev/stderr |logger -p 6 -t ''
+
+if [ $rcquiet -ne 1 ];then
+ ipaddr=$(ip addr show $(ip route show|awk '/default/ { print $5 }')|awk '/inet / { print $2 }')
+ echo "Your ip adress is $ipaddr"
+fi