mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
update zram bool
This commit is contained in:
committed by
Matt Hill
parent
df88a55784
commit
f2071d8b7e
@@ -40,6 +40,7 @@ pub async fn zram(#[context] ctx: RpcContext, #[arg] enable: bool) -> Result<(),
|
|||||||
if enable == *zram {
|
if enable == *zram {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
*zram = enable;
|
||||||
if enable {
|
if enable {
|
||||||
let mem_info = get_mem_info().await?;
|
let mem_info = get_mem_info().await?;
|
||||||
Command::new("modprobe")
|
Command::new("modprobe")
|
||||||
|
|||||||
Reference in New Issue
Block a user