azlux / log2ram

ramlog like for systemd (Put log into a ram folder)
MIT License
2.62k stars 193 forks source link

can this work with FriendlyWRT / Open/WRT ? #180

Closed KalixtShawxo closed 2 years ago

KalixtShawxo commented 2 years ago

simple question...cause the docs say that the script can be used with any Linux.

But I can't seem to get it installed. I have installed FriendlyWRT on a Nanopi R2S and thought Log2Ram would be a good addition (I use it with my DietPi installs) but SUDO and Systemctl don't exist with FriendlyWRT. so following the manual install doesn't work as written and I am too newb to figure out the changes needed. I did a search in the issues and didn't find anything for the WRT install.
This is the error I got the first time by removing the SUDO `root@FriendlyWrt:~/log2ram-master# chmod +x install.sh && ./install.sh ./install.sh: line 3: systemctl: not found ./install.sh: line 8: install: not found ./install.sh: line 9: install: not found ./install.sh: line 10: install: not found ./install.sh: line 11: install: not found ./install.sh: line 12: install: not found ./install.sh: line 13: install: not found ./install.sh: line 14: systemctl: not found

Directory /etc/logrotate.d does not exist.
Skipping log2ram.logrotate installation.
Reboot to activate log2ram
edit /etc/log2ram.conf to configure options

then i replaced SUDO with BASH and got this root@FriendlyWrt:~/log2ram-master# bash ./install.sh ./install.sh: line 3: systemctl: command not found ./install.sh: line 8: install: command not found ./install.sh: line 9: install: command not found ./install.sh: line 10: install: command not found ./install.sh: line 11: install: command not found ./install.sh: line 12: install: command not found ./install.sh: line 13: install: command not found ./install.sh: line 14: systemctl: command not found

Directory /etc/logrotate.d does not exist.
Skipping log2ram.logrotate installation.
Reboot to activate log2ram
edit /etc/log2ram.conf to configure options

` anyone want to be my hero and tell me what I need to change to make it work?

thanks in advance for any help.

azlux commented 2 years ago

Hi,

  1. DietPI is already well optimized with log and write cycle. I don't think you need log2ram. The project manager have create a "clone" of log2ram into the system
  2. You have standard command (install) not install, it's really a DIETpi :D
  3. you don't have systemctl ? So look like not a systemd system.