Kills a user’s EFTW session if the client hasn’t updated the keepalive within 30 seconds. Note: This is necessary to prevent shells from running eternally in the background.
A plugin for managing your system.
Render a page where the user can reboot the system.
Note the capital R in ‘Reboot’. Not to be confused with ‘reboot’ which immediately reboots the system.
Updates the system hostname with the given hostname.
That means writing the hostname to /proc/sys/kernel/hostname ...and if it exists, update /etc/hostname ...and if this is OpenWRT, update /etc/config/system too
Returns a list of lists of all init scripts in the following format (all strings): [
- [
- <init.d script name>, <rc.d link name(s)>, <enabled: true/false>, <valid/invalid>, <START value>
],
]
Parses the output of the ‘logread’ command and returns it as a list of lists in the following format:
- [
- [datetime_obj, hostname, facility, priority, process, pid, message],
]
If a date_format is given, log dates will be converted to a string before being added to the output like so: datetime_obj.strftime(date_format)