diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ncp/SYSTEM/nc-ramlogs.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ncp/SYSTEM/nc-ramlogs.sh b/bin/ncp/SYSTEM/nc-ramlogs.sh index c53d92ac..88b0e41b 100644 --- a/bin/ncp/SYSTEM/nc-ramlogs.sh +++ b/bin/ncp/SYSTEM/nc-ramlogs.sh @@ -32,14 +32,15 @@ install() configure() { + [[ -f /lib/systemd/system/armbian-ramlog.service ]] && local ramlog=armbian-ramlog || local ramlog=log2ram + [[ $ACTIVE != "yes" ]] && { - systemctl disable log2ram - systemctl stop log2ram + systemctl disable "$ramlog" + systemctl stop "$ramlog" echo "Logs in SD. Reboot to take effect" return } - [[ -f /lib/systemd/system/armbian-ramlog.service ]] && local ramlog=armbian-ramlog || local ramlog=log2ram systemctl enable "$ramlog" systemctl start "$ramlog" |