Skip to content

Instantly share code, notes, and snippets.

View sebix's full-sized avatar

Sebastian sebix

View GitHub Profile
@sebix
sebix / update-resolv-conf
Last active April 17, 2021 09:55 — forked from weisi/update-resolv-conf
update-resolv-conf for openSUSE, using SUSE's netconfig with dirty tricks. No need for resolvconf.
#!/bin/bash
#
# Parses DHCP options from openvpn to update resolv.conf
# To use set as 'up' and 'down' script in your openvpn *.conf:
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
#
# Used snippets of resolvconf script by Thomas Hood <[email protected]>
# and Chris Hanson
# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL.