Skip to content
Snippets Groups Projects
Commit e32a1514 authored by Bob Mottram's avatar Bob Mottram
Browse files

Checking of IP addresses

parent e7363daa
No related branches found
No related tags found
No related merge requests found
......@@ -1336,7 +1336,7 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168
esac
if ! grep -q 'iface eth0 inet static' /etc/network/interfaces; then
if [ "$NEW_STATIC_GATEWAY" && "$NEW_STATIC_IP" ]; then
if [[ "$NEW_STATIC_GATEWAY" == *"."* && "$NEW_STATIC_IP" == *"."* ]]; then
echo '# This file describes the network interfaces available on your system' > /etc/network/interfaces
echo '# and how to activate them. For more information, see interfaces(5).' >> /etc/network/interfaces
echo '' >> /etc/network/interfaces
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment