mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Remove hardcoded default values, implement defaults.json
This commit is contained in:
		| @@ -21,6 +21,7 @@ readonly raspap_sudoers="/etc/sudoers.d/090_raspap" | ||||
| readonly raspap_dnsmasq="/etc/dnsmasq.d/090_wlan0.conf" | ||||
| readonly raspap_adblock="/etc/dnsmasq.d/090_adblock.conf" | ||||
| readonly raspap_sysctl="/etc/sysctl.d/90_raspap.conf" | ||||
| readonly raspap_network="$raspap_dir/networking/" | ||||
| readonly rulesv4="/etc/iptables/rules.v4" | ||||
| readonly notracking_url="https://raw.githubusercontent.com/notracking/hosts-blocklists/master/" | ||||
| webroot_dir="/var/www/html" | ||||
| @@ -378,6 +379,7 @@ function _default_configuration() { | ||||
|         sudo cp $webroot_dir/config/hostapd.conf /etc/hostapd/hostapd.conf || _install_status 1 "Unable to move hostapd configuration file" | ||||
|         sudo cp $webroot_dir/config/090_wlan0.conf $raspap_dnsmasq || _install_status 1 "Unable to move dnsmasq configuration file" | ||||
|         sudo cp $webroot_dir/config/dhcpcd.conf /etc/dhcpcd.conf || _install_status 1 "Unable to move dhcpcd configuration file" | ||||
|         sudo cp $webroot_dir/config/defaults.json $raspap_network || _install_status 1 "Unable to move defaults.json settings" | ||||
|  | ||||
|         echo "Checking for existence of /etc/dnsmasq.d" | ||||
|         [ -d /etc/dnsmasq.d ] || sudo mkdir /etc/dnsmasq.d | ||||
|   | ||||
		Reference in New Issue
	
	Block a user