Skip to content

close2code-palm/pylioff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python wrapper for libc reboot call, based on rust extension rebo. Usage:

from pylioff import reboot, LINUX_REBOOT_CMD_RESTART

try:
    reboot(LINUX_REBOOT_CMD_RESTART)
except PermissionError:
    ...

Available flags: LINUX_REBOOT_CMD_CAD_ON, LINUX_REBOOT_CMD_HALT, LINUX_REBOOT_CMD_RESTART, LINUX_REBOOT_CMD_KEXEC, LINUX_REBOOT_CMD_CAD_OFF, LINUX_REBOOT_CMD_SW_SUSPEND, LINUX_REBOOT_CMD_POWER_OFF

About

Linux reboot api wrapper available from python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages