diff options
Diffstat (limited to 'source/a/util-linux')
-rw-r--r-- | source/a/util-linux/doinst.sh | 1 | ||||
-rw-r--r-- | source/a/util-linux/rc.setterm | 13 | ||||
-rwxr-xr-x | source/a/util-linux/util-linux.SlackBuild | 8 |
3 files changed, 21 insertions, 1 deletions
diff --git a/source/a/util-linux/doinst.sh b/source/a/util-linux/doinst.sh index 678c228f..f3010148 100644 --- a/source/a/util-linux/doinst.sh +++ b/source/a/util-linux/doinst.sh @@ -19,5 +19,6 @@ if [ -e etc/rc.d/rc.serial ]; then fi config etc/rc.d/rc.serial.new +config etc/rc.d/rc.setterm.new config etc/serial.conf.new diff --git a/source/a/util-linux/rc.setterm b/source/a/util-linux/rc.setterm new file mode 100644 index 00000000..b98b1020 --- /dev/null +++ b/source/a/util-linux/rc.setterm @@ -0,0 +1,13 @@ +#!/bin/sh +# +# This file provides the command line for the setterm utility to set the +# terminal attributes (primarily used for screen blanking and power +# management). + +# Screen blanks after 15 minutes idle time, and powers down in one hour +# if the kernel supports APM or ACPI power management (default setting): +/bin/setterm -blank 15 -powersave powerdown -powerdown 60 + +# Screen does not blank or use power management features: +#/bin/setterm -blank 0 -powersave off -powerdown 0 + diff --git a/source/a/util-linux/util-linux.SlackBuild b/source/a/util-linux/util-linux.SlackBuild index 5bda2e60..0729a531 100755 --- a/source/a/util-linux/util-linux.SlackBuild +++ b/source/a/util-linux/util-linux.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=util-linux VERSION=${VERSION:-$(echo util-linux*.tar.xz | cut -d - -f 3 | rev | cut -f 3- -d . | rev)} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} ADJTIMEXVERS=1.29 SETSERIALVERS=2.17 @@ -181,6 +181,12 @@ if [ -r $PKG/usr/sbin/fdformat ]; then ) fi +# Add the rc.setterm init script to set default terminal attributes: +mkdir -p $PKG/etc/rc.d +cp -a $CWD/rc.setterm $PKG/etc/rc.d/rc.setterm.new +chown root:root $PKG/etc/rc.d/rc.setterm.new +chmod 755 $PKG/etc/rc.d/rc.setterm.new + # ddate.{1,c} taken from https://github.com/bo0ts/ddate: cp -a $CWD/ddate.? . cc -O -o ddate ddate.c |