Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/soas-xo.ks
diff options
context:
space:
mode:
authorMartin Dengler <martin@martindengler.com>2009-09-07 22:05:34 (GMT)
committer Martin Dengler <martin@martindengler.com>2009-09-07 22:05:34 (GMT)
commit56a34a405ea03ea966ce9311aa4bf9888b0c40be (patch)
tree490271937e54a5dc57455d46c3aeeac1d7887ab2 /soas-xo.ks
parenta72b960380a9cb368b58657f7bbb3ebb63dcd5c4 (diff)
workaround ul-warning shown when not shutting down dlo#9452
Diffstat (limited to 'soas-xo.ks')
-rw-r--r--soas-xo.ks26
1 files changed, 26 insertions, 0 deletions
diff --git a/soas-xo.ks b/soas-xo.ks
index 240dabb..7b8cfdd 100644
--- a/soas-xo.ks
+++ b/soas-xo.ks
@@ -208,6 +208,32 @@ FOE
sed -i -e 's/start on stopped prefdm/start on stopped prefdm\n\n#FIXME remove when olpc-utils is patched or\n# http:\/\/lists.sugarlabs.org\/archive\/sugar-devel\/2009-August\/018378.html\n# is otherwise fixed\nstart on runlevel [2345]/' /etc/event.d/ttyS0
+# ensure ul-warning only shows when shutting down
+# FIXME: remove when dev.laptop.org #9452 is fixed
+patch /etc/init.d/ul-warning <<EOF
+---
+ init.d/ul-warning | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+ mode change 100644 => 100755 init.d/ul-warning
+
+diff --git a/init.d/ul-warning b/init.d/ul-warning
+old mode 100644
+new mode 100755
+index 045979e..86c51a8
+--- a/init.d/ul-warning
++++ b/init.d/ul-warning
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+ # ul-warning: start shutdown ul-warning
+ #
+-# chkconfig: 5 1 0
++# chkconfig: 3 4 5 1 0
+ # description: This script shows the UL warning at shutdown.
+
+ lockfile=/var/lock/subsys/ul-warning
+EOF
+
+
# configure powerd
mv /etc/powerd/powerd.conf /etc/powerd/standard.conf