| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | function save_previousscip-shell shell dnsmasq 2.93-1 save_previous().() { |
| 4 | if [scip-shell system . . `[`. -e $1 -a ! -e $1.predhclient ]; then |
| 5 | mvscip-shell system . . mv. $1 $1.predhclient |
| 6 | fi |
| 7 | } |
| 8 | |
| 9 | function write_resolv_confscip-shell shell dnsmasq 2.93-1 write_resolv_conf().() { |
| 10 | RESOLVCONF=$1 |
| 11 | if [scip-shell system . . `[`. -n "$new_domain_name" ] || [scip-shell system . . `[`. -n "$new_domain_name_servers" ]; then |
| 12 | save_previousscip-shell shell dnsmasq 2.93-1 save_previous(). $RESOLVCONF |
| 13 | echoscip-shell system . . echo. '; generated by /etc/dhclient-enter-hooks' > $RESOLVCONF |
| 14 | if [scip-shell system . . `[`. -n "$SEARCH" ]; then |
| 15 | echoscip-shell system . . echo. search $SEARCH >> $RESOLVCONF |
| 16 | else |
| 17 | if [scip-shell system . . `[`. -n "$new_domain_name" ]; then |
| 18 | echoscip-shell system . . echo. search $new_domain_name >> $RESOLVCONF |
| 19 | fi |
| 20 | fi |
| 21 | chmodscip-shell system . . chmod. 644 $RESOLVCONF |
| 22 | for nameserver in $new_domain_name_servers; do |
| 23 | echoscip-shell system . . echo. nameserver $nameserver >>$RESOLVCONF |
| 24 | done |
| 25 | fi |
| 26 | } |
| 27 | |
| 28 | make_resolv_confscip-shell shell dnsmasq 2.93-1 make_resolv_conf().() { |
| 29 | write_resolv_confscip-shell shell dnsmasq 2.93-1 write_resolv_conf(). /etc/resolv.confscip-shell filesystem . . `/etc/resolv.conf`. |
| 30 | } |