mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
sub ifupdown for ifconfig to save cpu power
This commit is contained in:
committed by
Aiden McClelland
parent
f922a6f08c
commit
87c10b7fbe
@@ -585,8 +585,9 @@ pub async fn synchronize_wpa_supplicant_conf<P: AsRef<Path>>(main_datadir: P) ->
|
|||||||
.arg("wpa_supplicant")
|
.arg("wpa_supplicant")
|
||||||
.invoke(ErrorKind::Wifi)
|
.invoke(ErrorKind::Wifi)
|
||||||
.await?;
|
.await?;
|
||||||
Command::new("ifup")
|
Command::new("ifconfig")
|
||||||
.arg("wlan0")
|
.arg("wlan0")
|
||||||
|
.arg("up")
|
||||||
.invoke(ErrorKind::Wifi)
|
.invoke(ErrorKind::Wifi)
|
||||||
.await?;
|
.await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ apt install -y \
|
|||||||
sqlite3 \
|
sqlite3 \
|
||||||
wireless-tools \
|
wireless-tools \
|
||||||
net-tools \
|
net-tools \
|
||||||
ifupdown \
|
|
||||||
ecryptfs-utils
|
ecryptfs-utils
|
||||||
sed -i 's/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades
|
sed -i 's/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades
|
||||||
sed -i 's/Restart=on-failure/Restart=always/g' /lib/systemd/system/tor@default.service
|
sed -i 's/Restart=on-failure/Restart=always/g' /lib/systemd/system/tor@default.service
|
||||||
|
|||||||
Reference in New Issue
Block a user