mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
@@ -801,7 +801,6 @@ pub async fn synchronize_wpa_supplicant_conf<P: AsRef<Path>>(
|
||||
.arg("up")
|
||||
.invoke(ErrorKind::Wifi)
|
||||
.await?;
|
||||
Command::new("dhclient").invoke(ErrorKind::Wifi).await?;
|
||||
if let Some(last_country_code) = last_country_code {
|
||||
tracing::info!("Setting the region");
|
||||
let _ = Command::new("iw")
|
||||
|
||||
@@ -56,9 +56,16 @@ apt update && apt install -y tor deb.torproject.org-keyring
|
||||
|
||||
curl -fsSL https://get.docker.com | sh # TODO: commit this script into git instead of live fetching it
|
||||
|
||||
apt-get purge openresolv dhcpcd5 -y
|
||||
# enable embassyd dns server
|
||||
systemctl enable systemd-resolved
|
||||
sed -i '/\(^\|#\)DNS=/c\DNS=127.0.0.1' /etc/systemd/resolved.conf
|
||||
systemctl start systemd-resolved
|
||||
|
||||
apt-get remove --purge openresolv dhcpcd5 -y
|
||||
systemctl disable wpa_supplicant.service
|
||||
|
||||
ln -rsf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
|
||||
|
||||
systemctl disable bluetooth.service
|
||||
systemctl disable triggerhappy.service
|
||||
|
||||
@@ -95,17 +102,12 @@ EOF
|
||||
cat << EOF > /etc/NetworkManager/NetworkManager.conf
|
||||
[main]
|
||||
plugins=ifupdown,keyfile
|
||||
dns=none
|
||||
rc-manager=unmanaged
|
||||
dns=systemd-resolved
|
||||
|
||||
[ifupdown]
|
||||
managed=false
|
||||
EOF
|
||||
|
||||
# enable embassyd dns server
|
||||
systemctl enable systemd-resolved
|
||||
sed -i '/\(^\|#\)DNS=/c\DNS=127.0.0.1' /etc/systemd/resolved.conf
|
||||
sed -i '/prepend domain-name-servers/c\prepend domain-name-servers 127.0.0.53;' /etc/dhcp/dhclient.conf
|
||||
|
||||
if [ -f /embassy-os/product_key.txt ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user