Suggest x.x.x.1 as default gatway and DNS server; create /etc/udev/scripts/ 0.1.15
authorMichael Prokop <mika@grml.org>
Sun, 4 Nov 2007 23:16:07 +0000 (00:16 +0100)
committerMichael Prokop <mika@grml.org>
Sun, 4 Nov 2007 23:16:07 +0000 (00:16 +0100)
debian/changelog
sbin/netcardconfig

index ae409d6..4a8c214 100644 (file)
@@ -1,3 +1,10 @@
+grml-network (0.1.15) unstable; urgency=low
+
+  * Suggest x.x.x.1 as default gatway and DNS server instead of x.x.x.254.
+  * Create directory /etc/udev/scripts/ before using it.
+
+ -- Michael Prokop <mika@grml.org>  Mon, 05 Nov 2007 00:15:02 +0100
+
 grml-network (0.1.14) unstable; urgency=low
 
   [ Michael Gebetsroither ]
index e0b23d3..4e453d0 100755 (executable)
@@ -84,6 +84,7 @@ writeiwline() {
 
 generate_udev_entry() {
   interface=''
+  mkdir -p /etc/udev/scripts
   echo "# Auto generated script from netcardconfig on $(date)
 # Executing this script generates an entry in /etc/udev/rules.d/z25_persistent-net.rules
 # for you, please check z25_persistent-net.rules for existing entries before
@@ -400,14 +401,14 @@ configiface() {
     $DIALOG --inputbox "$MESSAGE8 $DV" 10 45 "${BC:-${IP%.*}.255}" 2>"$TMP" || bailout 1
     read BC <"$TMP" ; rm -f "$TMP"
 
-    $DIALOG --inputbox "$MESSAGE9" 10 45 "${DG:-${IP%.*}.254}" 2>"$TMP"
+    $DIALOG --inputbox "$MESSAGE9" 10 45 "${DG:-${IP%.*}.1}" 2>"$TMP"
     read DG <"$TMP" ; rm -f "$TMP"
 
     if [ -f "/etc/resolv.conf" ]; then
       NS="$(awk '/^nameserver/{printf "%s ",$2}' /etc/resolv.conf)"
     fi
 
-    $DIALOG --inputbox "$MESSAGE10" 10 45 "${NS:-${IP%.*}.254}" 2>"$TMP"
+    $DIALOG --inputbox "$MESSAGE10" 10 45 "${NS:-$DG}" 2>"$TMP"
     read NS <"$TMP" ; rm -f "$TMP"
 
     if [ -w /etc/network/interfaces ]; then