Skip to content

Commit

Permalink
added package auto reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
DEvil0000 committed Feb 7, 2022
1 parent 2c13616 commit fdd8439
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ffbsee-auto-reboot/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=ffbsee-auto-reboot
PKG_VERSION:=0.1
PKG_RELEASE:=1

PKG_MAINTAINER:=A. Binzxxxxxx <[email protected]>
PKG_LICENSE:=MIT

include $(TOPDIR)/../package/gluon.mk

define Package/ffbsee-auto-reboot
TITLE:=This package will add a automatic reboot every week
DEPENDS:=
endef

$(eval $(call BuildPackageGluon,ffbsee-auto-reboot))
6 changes: 6 additions & 0 deletions ffbsee-auto-reboot/luasrc/lib/gluon/upgrade/500-auto-reboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/lua

local f = io.open('/usr/lib/micron.d/auto-reboot', 'w')
# Reboot every 5 days at 04:05
f:write('5 4 */5 * * /sbin/reboot\n')
f:close()

0 comments on commit fdd8439

Please sign in to comment.