forked from 0x2620/pandora
only print .local name if avahi is installed
This commit is contained in:
parent
a2a313904e
commit
8349c494d3
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,9 @@ cat > /usr/local/bin/genissue <<EOF
|
|||
HOST=\$(rgrep .local /var/log/syslog | grep "Host name is" | tail -n 1 | awk '{print \$12}' | sed 's/\.$//')
|
||||
echo Welcome to pan.do/ra. Connect via one of these URLs:
|
||||
echo
|
||||
echo " http://\$HOST/"
|
||||
if [ -n "$HOST" ]; then
|
||||
echo " http://\$HOST/"
|
||||
fi
|
||||
for ip in \$(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print \$1 }'); do
|
||||
echo " http://\$ip/"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue