Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
cloudinit /
distros /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
package_management
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
parsers
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
OpenCloudOS.py
277
B
-rw-r--r--
2023-12-04 11:47
TencentOS.py
277
B
-rw-r--r--
2023-12-04 11:47
__init__.py
51.19
KB
-rw-r--r--
2023-12-04 11:47
almalinux.py
151
B
-rw-r--r--
2023-12-04 11:47
alpine.py
8.38
KB
-rw-r--r--
2023-12-04 11:47
amazon.py
592
B
-rw-r--r--
2023-12-04 11:47
arch.py
8.51
KB
-rw-r--r--
2023-12-04 11:47
bsd.py
5.08
KB
-rw-r--r--
2023-12-04 11:47
bsd_utils.py
1.4
KB
-rw-r--r--
2023-12-04 11:47
centos.py
151
B
-rw-r--r--
2023-12-04 11:47
cloudlinux.py
151
B
-rw-r--r--
2023-12-04 11:47
cos.py
247
B
-rw-r--r--
2023-12-04 11:47
debian.py
9.84
KB
-rw-r--r--
2023-12-04 11:47
dragonflybsd.py
230
B
-rw-r--r--
2023-12-04 11:47
eurolinux.py
151
B
-rw-r--r--
2023-12-04 11:47
fedora.py
437
B
-rw-r--r--
2023-12-04 11:47
freebsd.py
7.45
KB
-rw-r--r--
2023-12-04 11:47
gentoo.py
9.11
KB
-rw-r--r--
2023-12-04 11:47
mariner.py
1.65
KB
-rw-r--r--
2023-12-04 11:47
miraclelinux.py
151
B
-rw-r--r--
2023-12-04 11:47
net_util.py
6.4
KB
-rw-r--r--
2023-12-04 11:47
netbsd.py
4.78
KB
-rw-r--r--
2023-12-04 11:47
networking.py
10.75
KB
-rw-r--r--
2023-12-04 11:47
openbsd.py
1.87
KB
-rw-r--r--
2023-12-04 11:47
openeuler.py
275
B
-rw-r--r--
2023-12-04 11:47
openmandriva.py
237
B
-rw-r--r--
2023-12-04 11:47
opensuse-leap.py
247
B
-rw-r--r--
2023-12-04 11:47
opensuse-microos.py
247
B
-rw-r--r--
2023-12-04 11:47
opensuse-tumbleweed.py
247
B
-rw-r--r--
2023-12-04 11:47
opensuse.py
9.85
KB
-rw-r--r--
2023-12-04 11:47
photon.py
5.18
KB
-rw-r--r--
2023-12-04 11:47
rhel.py
7.5
KB
-rw-r--r--
2023-12-04 11:47
rhel_util.py
1.4
KB
-rw-r--r--
2023-12-04 11:47
rocky.py
151
B
-rw-r--r--
2023-12-04 11:47
sle-micro.py
247
B
-rw-r--r--
2023-12-04 11:47
sle_hpc.py
247
B
-rw-r--r--
2023-12-04 11:47
sles.py
247
B
-rw-r--r--
2023-12-04 11:47
suse.py
81
B
-rw-r--r--
2023-12-04 11:47
ubuntu.py
1.75
KB
-rw-r--r--
2023-12-04 11:47
ug_util.py
9.75
KB
-rw-r--r--
2023-12-04 11:47
virtuozzo.py
151
B
-rw-r--r--
2023-12-04 11:47
Save
Rename
# This file is part of cloud-init. See LICENSE file for license information. import shlex from cloudinit import util # On NetBSD, /etc/rc.conf comes with a if block: # if [ -r /etc/defaults/rc.conf ]; then # as a consequence, the file is not a regular key/value list # anymore and we cannot use cloudinit.distros.parsers.sys_conf # The module comes with a more naive parser, but is able to # preserve these if blocks. def _unquote(value): if value[0] == value[-1] and value[0] in ['"', "'"]: return value[1:-1] return value def get_rc_config_value(key, fn="/etc/rc.conf"): key_prefix = "{}=".format(key) for line in util.load_file(fn).splitlines(): if line.startswith(key_prefix): value = line.replace(key_prefix, "") return _unquote(value) def set_rc_config_value(key, value, fn="/etc/rc.conf"): lines = [] done = False value = shlex.quote(value) original_content = util.load_file(fn) for line in original_content.splitlines(): if "=" in line: k, v = line.split("=", 1) if k == key: v = value done = True lines.append("=".join([k, v])) else: lines.append(line) if not done: lines.append("=".join([key, value])) new_content = "\n".join(lines) + "\n" if new_content != original_content: util.write_file(fn, new_content)