]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
OpenVPN aktualisiert
authorFrank Brehm <frank@brehm-online.com>
Tue, 24 Jan 2012 21:52:12 +0000 (22:52 +0100)
committerFrank Brehm <frank@brehm-online.com>
Tue, 24 Jan 2012 21:52:12 +0000 (22:52 +0100)
.etckeeper
.gitignore
motd
openvpn/profitbricks/resolv.conf
openvpn/profitbricks/update-resolv-conf

index 2a85096141d1a7b3dbcd9261322d90ab829daa5b..62ee71f80a3106d1e95b8003824af7af308c57a7 100755 (executable)
@@ -1415,6 +1415,7 @@ maybe chmod 0644 './radvd.conf'
 maybe chmod 0644 './rc.conf'
 maybe chmod 0644 './request-key.conf'
 maybe chmod 0644 './resolv.conf'
+maybe chmod 0644 './resolv.conf.bak'
 maybe chmod 0755 './revdep-rebuild'
 maybe chmod 0644 './revdep-rebuild/60-java'
 maybe chmod 0644 './revdep-rebuild/61-icedtea6-bin'
index fa8caf322450d77005bb8af1f28e2bbb2db0b443..75bc1dd5cc9f2b8cca3dfa938452fa9caa50dd57 100644 (file)
@@ -45,5 +45,6 @@ openvpn/openvpn-status.log
 .sw?
 \#*\#
 DEADJOE
+*.bak
 
 # end section managed by etckeeper
diff --git a/motd b/motd
index 2b5a3c15afff5fc43121f473d1b19f74761cada8..d44db4771afc2e16bf53e83d4b69beae51a4512e 100644 (file)
--- a/motd
+++ b/motd
@@ -7,8 +7,10 @@ Gentoo Base System release 2.0.3
 |____/|_|   \__,_|_| |_|_|
                           
 
-Wenn ich wüßte, was Kunst ist, würde ich es für mich behalten.
-               -- Pablo Picasso
+Gewinsel haben wir hier schon besser gesehen.  Von Haluk z.B.
+
+-- Felix von Leitner in de.comp.security.firewall
+   2002-05-07 <3cd8588f@fefe.de>
 
 Today is Prickle-Prickle, the 24th day of Chaos in the YOLD 3178
 
index 5c20275d5e7f8386d0db81659432dce04a85fa0e..93a7dfadf607aaf4b24cc98f5925edcdb85f8f68 100644 (file)
@@ -1,5 +1,6 @@
 # Hand made by Frank Brehm
-domain profitbricks.localdomain
-search profitbricks.localdomain home.brehm-online.com home.hennig-berlin.org brehm-online.com hennig-berlin.org
+domain brehm-online.com
+search home.brehm-online.com home.hennig-berlin.org brehm-online.com hennig-berlin.org uhu-banane.de profitbricks.localdomain dc1.de.profitbricks.net
+#nameserver 10.12.11.1
 nameserver 192.168.178.30
 nameserver 192.168.178.85
index a9d242d095854a4e47c2a42e35a86fc8f0bc89fe..c33a561719ec5f9fd46eff43d0d2f2e25cc2eda0 100755 (executable)
 # foreign_option_2='dhcp-option DNS 193.43.27.133'
 # foreign_option_3='dhcp-option DOMAIN be.bnc.ch'
 
-[ -x /sbin/resolvconf ] || exit 0
+#[ -x /sbin/resolvconf ] || exit 0
+#
+#case $script_type in
+#
+#up)
+#      for optionname in ${!foreign_option_*} ; do
+#              option="${!optionname}"
+#              echo $option
+#              part1=$(echo "$option" | cut -d " " -f 1)
+#              if [ "$part1" == "dhcp-option" ] ; then
+#                      part2=$(echo "$option" | cut -d " " -f 2)
+#                      part3=$(echo "$option" | cut -d " " -f 3)
+#                      if [ "$part2" == "DNS" ] ; then
+#                              IF_DNS_NAMESERVERS="$IF_DNS_NAMESERVERS $part3"
+#                      fi
+#                      if [ "$part2" == "DOMAIN" ] ; then
+#                              IF_DNS_SEARCH="$part3"
+#                      fi
+#              fi
+#      done
+#      R=""
+#      if [ "$IF_DNS_SEARCH" ] ; then
+#              R="${R}search $IF_DNS_SEARCH
+#"
+#      fi
+#      for NS in $IF_DNS_NAMESERVERS ; do
+#              R="${R}nameserver $NS
+#"
+#      done
+#      echo -n "$R" | /sbin/resolvconf -a "${dev}.inet"
+#      ;;
+#down)
+#      /sbin/resolvconf -d "${dev}.inet"
+#      if [ -f /etc/resolv.conf.bak ]; then
+#              cp -p /etc/resolv.conf.bak /etc/resolv.conf
+#      fi
+#      ;;
+#esac
 
 case $script_type in
-
-up)
-       for optionname in ${!foreign_option_*} ; do
-               option="${!optionname}"
-               echo $option
-               part1=$(echo "$option" | cut -d " " -f 1)
-               if [ "$part1" == "dhcp-option" ] ; then
-                       part2=$(echo "$option" | cut -d " " -f 2)
-                       part3=$(echo "$option" | cut -d " " -f 3)
-                       if [ "$part2" == "DNS" ] ; then
-                               IF_DNS_NAMESERVERS="$IF_DNS_NAMESERVERS $part3"
-                       fi
-                       if [ "$part2" == "DOMAIN" ] ; then
-                               IF_DNS_SEARCH="$part3"
-                       fi
-               fi
-       done
-       R=""
-       if [ "$IF_DNS_SEARCH" ] ; then
-               R="${R}search $IF_DNS_SEARCH
-"
-       fi
-       for NS in $IF_DNS_NAMESERVERS ; do
-               R="${R}nameserver $NS
-"
-       done
-       echo -n "$R" | /sbin/resolvconf -a "${dev}.inet"
-       ;;
-down)
-       /sbin/resolvconf -d "${dev}.inet"
-       if [ -f /etc/resolv.conf.bak ]; then
-               cp -p /etc/resolv.conf.bak /etc/resolv.conf
-       fi
-       ;;
+    up)
+        if [ -f /etc/openvpn/profitbricks/resolv.conf ] ; then
+            cp -p -v /etc/resolv.conf /etc/resolv.conf.bak
+            cp -p -v /etc/openvpn/profitbricks/resolv.conf /etc/resolv.conf
+        fi
+        ;;
+    down)
+           if [ -f /etc/resolv.conf.bak ]; then
+                   cp -p -v /etc/resolv.conf.bak /etc/resolv.conf
+           fi
+        ;;
 esac
 
+# vim: ts=4 expandtab
+