mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-25 14:57:19 +00:00
add local dns option
This commit is contained in:
parent
b59823b61e
commit
3175ed3d08
1
SD_ROOT/wz_mini/etc/hosts
Normal file
1
SD_ROOT/wz_mini/etc/hosts
Normal file
@ -0,0 +1 @@
|
|||||||
|
127.0.0.1 localhost
|
@ -585,6 +585,12 @@ if [[ "$NIGHT_DROP_DISABLE" == "true" ]]; then
|
|||||||
touch /opt/wz_mini/tmp/.nd
|
touch /opt/wz_mini/tmp/.nd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$ENABLE_LOCAL_DNS" == "true" ]]; then
|
||||||
|
dnsmasq -C /opt/wz_mini/etc/dnsmasq.conf
|
||||||
|
rm -f /tmp/resolv.conf
|
||||||
|
cp /opt/wz_mini/etc/resolv.conf /tmp/resolv.conf
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$WEB_SERVER_ENABLED" == "true" ]]; then
|
if [[ "$WEB_SERVER_ENABLED" == "true" ]]; then
|
||||||
httpd -p 80 -h /opt/wz_mini/www
|
httpd -p 80 -h /opt/wz_mini/www
|
||||||
fi
|
fi
|
||||||
|
1
SD_ROOT/wz_mini/etc/passwd
Normal file
1
SD_ROOT/wz_mini/etc/passwd
Normal file
@ -0,0 +1 @@
|
|||||||
|
root:x:0:0:root:/opt/wz_mini/root:/bin/sh
|
1
SD_ROOT/wz_mini/etc/resolv.conf
Normal file
1
SD_ROOT/wz_mini/etc/resolv.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
nameserver 127.0.0.1
|
@ -1,4 +1,4 @@
|
|||||||
#List your desired upstream dns servers here
|
#List your desired upstream dns servers here
|
||||||
|
|
||||||
#nameserver 8.8.8.8
|
nameserver 1.1.1.1
|
||||||
#nameserver 8.8.4.4
|
nameserver 1.0.0.1
|
||||||
|
@ -92,9 +92,7 @@ NIGHT_DROP_DISABLE="false"
|
|||||||
DISABLE_MOTOR="false"
|
DISABLE_MOTOR="false"
|
||||||
ENABLE_FSCK_ON_BOOT="false"
|
ENABLE_FSCK_ON_BOOT="false"
|
||||||
ENABLE_CAR_DRIVER="false"
|
ENABLE_CAR_DRIVER="false"
|
||||||
|
ENABLE_LOCAL_DNS="false"
|
||||||
#####WEB#####
|
|
||||||
WEB_SERVER_ENABLED="false"
|
|
||||||
|
|
||||||
#####DEBUG#####
|
#####DEBUG#####
|
||||||
#drops you to a shell via serial, doesn't load app_init.sh
|
#drops you to a shell via serial, doesn't load app_init.sh
|
||||||
@ -102,6 +100,8 @@ DEBUG_ENABLED="false"
|
|||||||
DEBUG_INITRAMFS_ENABLED="false"
|
DEBUG_INITRAMFS_ENABLED="false"
|
||||||
DEBUG_PASSWORD="false"
|
DEBUG_PASSWORD="false"
|
||||||
|
|
||||||
|
####WEB####
|
||||||
|
WEB_SERVER_ENABLED="false"
|
||||||
|
|
||||||
#####SCRIPTING#####
|
#####SCRIPTING#####
|
||||||
CUSTOM_SCRIPT_PATH=""
|
CUSTOM_SCRIPT_PATH=""
|
||||||
|
@ -92,6 +92,7 @@ NIGHT_DROP_DISABLE="false"
|
|||||||
DISABLE_MOTOR="false"
|
DISABLE_MOTOR="false"
|
||||||
ENABLE_FSCK_ON_BOOT="false"
|
ENABLE_FSCK_ON_BOOT="false"
|
||||||
ENABLE_CAR_DRIVER="false"
|
ENABLE_CAR_DRIVER="false"
|
||||||
|
ENABLE_LOCAL_DNS="false"
|
||||||
|
|
||||||
#####DEBUG#####
|
#####DEBUG#####
|
||||||
#drops you to a shell via serial, doesn't load app_init.sh
|
#drops you to a shell via serial, doesn't load app_init.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user