From 7afdac632dafda50b3f6bbc5dbfe3131ea14ed5c Mon Sep 17 00:00:00 2001 From: UsernameSwift Date: Sat, 25 Jun 2022 09:13:53 -0400 Subject: [PATCH] Changed hostname generation --- src/functions/network.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/functions/network.rs b/src/functions/network.rs index f69f72e..43c4172 100755 --- a/src/functions/network.rs +++ b/src/functions/network.rs @@ -1,6 +1,9 @@ use crate::internal::*; -pub fn set_hostname(hostname: &str) { +pub fn set_hostname(mut hostname: &str) { + if hostname == "---------" { + hostname = "crystal"; + } println!("Setting hostname to {}", hostname); files::create_file("/mnt/etc/hostname"); files_eval(