Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:portalofreedom
pi-hole
fillup_01-pihole.conf.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fillup_01-pihole.conf.sh of Package pi-hole
#! /bin/bash PI_HOLE_CONF="/etc/pihole/setupVars.conf" DNSMASQ_CONF="/etc/dnsmasq.d/01-pihole.conf" # get values from setupVars VAR_SERVER_1="$(grep PIHOLE_DNS_1 $PI_HOLE_CONF | awk -F'=' '{print $2}')" VAR_SERVER_2="$(grep PIHOLE_DNS_2 $PI_HOLE_CONF | awk -F'=' '{print $2}')" VAR_INT="$(grep PIHOLE_INTERFACE $PI_HOLE_CONF | awk -F'=' '{print $2}')" VAR_CACHE="$(grep CACHE_SIZE $PI_HOLE_CONF | awk -F'=' '{print $2}')" sed -i "s/@DNS1@/$VAR_SERVER_1/g" $DNSMASQ_CONF sed -i "s/@DNS2@/$VAR_SERVER_2/g" $DNSMASQ_CONF sed -i "s/@INT@/$VAR_INT/g" $DNSMASQ_CONF sed -i "s/@CACHE_SIZE@/$VAR_CACHE/g" $DNSMASQ_CONF
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor