diff options
Diffstat (limited to 'package/base-files/src/etc/init.d/rcS')
-rwxr-xr-x | package/base-files/src/etc/init.d/rcS | 5 |
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 |