summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-14 16:50:52 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-14 16:50:52 -0700
commitb3a91f5c323625009895a1b0fd3e4806ba7327de (patch)
tree3e07d1ef5e8c34fcc27394938ea3e974251e870e /debian
parente1674494e1fe13c96fdeee44ed3ddb8f6b965f6a (diff)
parent4f57670b420b779484659a013e67d17976f99723 (diff)
downloadvyatta-cfg-system-b3a91f5c323625009895a1b0fd3e4806ba7327de.tar.gz
vyatta-cfg-system-b3a91f5c323625009895a1b0fd3e4806ba7327de.zip
Merge branch 'mendocino' of vm:vyatta/mendocino/vyatta-cfg-system into mendocino
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-cfg-system.postinst.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 8d288e75..0d2c29e5 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -25,6 +25,13 @@ if ! grep -q '^tss' /etc/passwd; then
adduser --system --group --shell /usr/sbin/nologin --home /var/lib/tpm tss
fi
+# Force screenblanker to be off, it can be enabled later if desired
+if [ -f /etc/console-tools/config ]; then
+ sed -i -e '/^POWERDOWN/s/=.*$/=0/' \
+ -e '/^BLANK_TIME/s/=.*$/=0/' \
+ -e '/^BLANK_DPMS/s/=.*$/=off/' /etc/console-tools/config
+fi
+
if [ "$sysconfdir" != "/etc" ]; then
touch /etc/sudoers
cp -p /etc/sudoers /etc/sudoers.bak