]> Frank Brehm's Git Trees - config/bruni/etc-mint-new1.git/commitdiff
committing changes in /etc made by "/usr/bin/python3 /usr/bin/nala upgrade --purge"
authorFrank Brehm <frank@brehm-online.com>
Fri, 1 Dec 2023 08:55:51 +0000 (09:55 +0100)
committerFrank Brehm <root@bruni.home.brehm-online.com>
Fri, 1 Dec 2023 08:55:51 +0000 (09:55 +0100)
Packages with configuration changes:
-ifupdown 0.8.36+nmu1ubuntu3 amd64
+ifupdown 0.8.36+nmu1ubuntu3.1 amd64

Package changes:
-ifupdown 0.8.36+nmu1ubuntu3 amd64
+ifupdown 0.8.36+nmu1ubuntu3.1 amd64

network/if-down.d/resolved
network/if-up.d/resolved

index 71245fd857cfa99d389cbae8a699da1d2904f62d..6b7b06429f3698de7dae8190b4682d573e42b328 100755 (executable)
@@ -9,7 +9,6 @@ case "$ADDRFAM" in
 esac            
 
 if systemctl is-enabled systemd-resolved > /dev/null 2>&1; then
-    mystatedir statedir ifindex interface
     interface=$IFACE
     if [ ! "$interface" ]; then
         return
index 13690f904a9c4648c8d48c5bd821e4fae9acf321..e0e7c7772c1ecf2c5ff0ede0b9cff3bd067fc089 100755 (executable)
@@ -9,8 +9,6 @@ case "$ADDRFAM" in
 esac            
 
 if systemctl is-enabled systemd-resolved > /dev/null 2>&1; then
-    mystatedir statedir ifindex interface
-
     interface=$IFACE
     if [ ! "$interface" ]; then
         return
@@ -45,11 +43,11 @@ if systemctl is-enabled systemd-resolved > /dev/null 2>&1; then
     fi
     if  [ -n "$NEW_DNS" ]; then
         cat <<EOF >"$mystatedir/ifupdown-${ADDRFAM}-$interface"
-"$DNS"="$NEW_DNS"
+$DNS="$NEW_DNS"
 EOF
         if  [ -n "$NEW_DOMAINS" ]; then
             cat <<EOF >>"$mystatedir/ifupdown-${ADDRFAM}-$interface"
-"$DOMAINS"="$NEW_DOMAINS"
+$DOMAINS="$NEW_DOMAINS"
 EOF
         fi
     fi
@@ -68,7 +66,7 @@ EOF
     # ignore errors due to nonexistent file
     md5sum "$mystatedir/isc-dhcp-v4-$interface" "$mystatedir/isc-dhcp-v6-$interface" "$mystatedir/ifupdown-inet-$interface" "$mystatedir/ifupdown-inet6-$interface" > "$newstate" 2> /dev/null || true
     if ! cmp --silent "$oldstate" "$newstate" 2>/dev/null; then
-        DNS DNS6 DOMAINS DOMAINS6 DEFAULT_ROUTE
+        unset DNS DNS6 DOMAINS DOMAINS6 DEFAULT_ROUTE
         # v4 first
         if [ -e "$mystatedir/isc-dhcp-v4-$interface" ]; then
             . "$mystatedir/isc-dhcp-v4-$interface"