import os def _build_path(name): return os.path.join(os.sep, "proc", "sys", *name.split(".")) def read(name): with open(_build_path(name)) as f: data = f.read().strip() if data.isdigit: return int(data) else: return data def write(name, value): with open(_build_path(name), "w") as f: f.write(str(value))
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
features | Folder | 0755 |
|
|
panels | Folder | 0755 |
|
|
__init__.py | File | 0 B | 0644 |
|
backup_systems.py | File | 11.19 KB | 0644 |
|
notifier.py | File | 1.82 KB | 0644 |
|
persistent_state.py | File | 1.03 KB | 0644 |
|
svcctl.py | File | 7.96 KB | 0644 |
|
sysctl.py | File | 379 B | 0644 |
|
systemd_notifier.py | File | 1.58 KB | 0644 |
|
web_server.py | File | 21.04 KB | 0644 |
|