summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2023-02-28 03:59:40 (GMT)
committerBritney Fransen <brfransen@gmail.com>2023-02-28 03:59:40 (GMT)
commita835bb246a72fef277faa2f92ea3671e476242e1 (patch)
treef4cb3761bf1313d1592e5ff75d32305eb4058c0e /linhes/linhes-system
parent6d539ff0d35e9082eedcb5d315c7eb76cca136ec (diff)
downloadlinhes_pkgbuild-a835bb246a72fef277faa2f92ea3671e476242e1.zip
linhes_pkgbuild-a835bb246a72fef277faa2f92ea3671e476242e1.tar.gz
linhes_pkgbuild-a835bb246a72fef277faa2f92ea3671e476242e1.tar.bz2
linhes-system: change dpms settings
add wol rules
Diffstat (limited to 'linhes/linhes-system')
-rw-r--r--linhes/linhes-system/10-monitor.conf9
-rw-r--r--linhes/linhes-system/81-wol.rules1
-rwxr-xr-xlinhes/linhes-system/PKGBUILD17
3 files changed, 18 insertions, 9 deletions
diff --git a/linhes/linhes-system/10-monitor.conf b/linhes/linhes-system/10-monitor.conf
index f63cc86..a92ff49 100644
--- a/linhes/linhes-system/10-monitor.conf
+++ b/linhes/linhes-system/10-monitor.conf
@@ -1,3 +1,10 @@
Section "Extensions"
- Option "DPMS" "Disable"
+ Option "DPMS" "True"
+EndSection
+
+Section "ServerFlags"
+ Option "StandbyTime" "0"
+ Option "SuspendTime" "0"
+ Option "OffTime" "0"
+ Option "BlankTime" "0"
EndSection
diff --git a/linhes/linhes-system/81-wol.rules b/linhes/linhes-system/81-wol.rules
new file mode 100644
index 0000000..f4d0116
--- /dev/null
+++ b/linhes/linhes-system/81-wol.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="/usr/bin/ethtool -s $name wol g"
diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD
index 2d57bbf..5ab0b17 100755
--- a/linhes/linhes-system/PKGBUILD
+++ b/linhes/linhes-system/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=linhes-system
pkgver=9.0.0
-pkgrel=50
+pkgrel=52
arch=('x86_64')
#install=$pkgname.install
pkgdesc="Everything that makes LinHES a system"
@@ -23,7 +23,7 @@ source=($binfiles
'lh_mtc.cron' 'paccache.cron' 'flatpak_update.cron' 'xfs_defrag.cron'
'readme_is_xml' 'add_storage.readme' 'LinHES-release' 'lh_log_care.cron'
'79-cronie.hook' 'fstrim.hook' 'openssh.hook' 'plex_lib.conf' 'rsyslog.hook'
- '10-monitor.conf' 'x11vnc.override.conf' 'lh_lighttpd.conf' 'lh_php.ini'
+ '10-monitor.conf' '81-wol.rules' 'x11vnc.override.conf' 'lh_lighttpd.conf' 'lh_php.ini'
'system-sudo.rules' 'linhes-profile.sh' 'lh_sqlserver.cnf'
'lh_system_start.sh.desktop' 'rc6_mce.toml' 'recordings.cron' 'rsyslog.mythtv.conf')
sha256sums=('525bfe29b63d3ec5a17a32fa29745e24070020490c3f5b6dd6b03250348fb324'
@@ -70,7 +70,8 @@ sha256sums=('525bfe29b63d3ec5a17a32fa29745e24070020490c3f5b6dd6b03250348fb324'
'890482242434e333024c7819e8bf3c889dc16548d0a1745479c8523930fb32f7'
'71c564a12d9a8e2814a2bf67a1a3d70c1e9d3b50bc108f7043ed8c958c067b01'
'6c42b2920c6a37bf3dd05755b9e3fdd80137708cc55a7d1bef2234c17dff0349'
- 'dead17906b33a7f9d66ad13bb1c083a23438f45ece9bd5ec41ff86eda01c132a'
+ '09b9c1b2ee6a5bbe48c5f3755ad64628487b60a4eb6734efb292cefdb74fb657'
+ 'efc2a04b67ea76661157e154228d4b58ae2e1b652f8ce41bc001a5a863d13573'
'7f5b366075fa61fadfcdbab2837f0c58f3a8004a59fc8948fec1647d2573ffaa'
'806e42821252c148701c130cc82aebed4f9f678f3f89987638231e4015d51e84'
'd4e37e72854edcba76b5464617bea3826e0495f9788340aa318d5f3cf29e87a2'
@@ -144,11 +145,11 @@ package() {
install -Dm0644 $srcdir/rsyslog.hook "${pkgdir}"/usr/share/libalpm/hooks/rsyslog.hook
#sudo rules
- mkdir -p $pkgdir/etc/sudoers.d/
- chmod 750 $pkgdir/etc/sudoers.d/
- chown -R root:root $pkgdir/etc/sudoers.d
- install -o root -g root -m0750 $srcdir/system-sudo.rules $pkgdir/etc/sudoers.d/system_sudo
+ install -Dm0750 "$srcdir/system-sudo.rules" "$pkgdir/etc/sudoers.d/system_sudo"
+
+ #udev rules
+ install -Dm0644 "$srcdir/81-wol.rules" "$pkgdir/etc/udev/rules.d/81-wol.rules"
#disable dpms
- install -m644 -D $srcdir/10-monitor.conf $pkgdir/etc/X11/xorg.conf.d/10-monitor.conf
+ install -Dm0644 "$srcdir/10-monitor.conf" "$pkgdir/etc/X11/xorg.conf.d/10-monitor.conf"
}