diff options
author | Sebastian | 2010-08-21 19:40:08 +0200 |
---|---|---|
committer | Sebastian | 2010-08-21 19:40:08 +0200 |
commit | a07c2e85704afcf3d36e85f43c2c4f6617eb7258 (patch) | |
tree | 109e6eecf4cf5c289159f20532dc85eccdc223f5 /os-plugins | |
parent | add stage3 script for rsyslog (diff) | |
download | core-a07c2e85704afcf3d36e85f43c2c4f6617eb7258.tar.gz core-a07c2e85704afcf3d36e85f43c2c4f6617eb7258.tar.xz core-a07c2e85704afcf3d36e85f43c2c4f6617eb7258.zip |
bootsplash shutdown fix for ubuntu 10.04+
Diffstat (limited to 'os-plugins')
-rw-r--r-- | os-plugins/plugins/bootsplash/XX_bootsplash.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/os-plugins/plugins/bootsplash/XX_bootsplash.sh b/os-plugins/plugins/bootsplash/XX_bootsplash.sh index 924d304c..8a829fc7 100644 --- a/os-plugins/plugins/bootsplash/XX_bootsplash.sh +++ b/os-plugins/plugins/bootsplash/XX_bootsplash.sh @@ -32,6 +32,25 @@ if [ -e /initramfs/plugin-conf/bootsplash.conf ]; then chmod 744 /mnt/etc/init.d/bootsplash.halt cp -a /etc/splashy /mnt/etc/ rllinker "bootsplash.halt" 1 1 + + # fix for ubuntu 1004+ + for i in init init.inactive; do + for j in kdm gdm xdm lxdm; do + dmfile=/mnt/etc/${i}/${j}.conf + if [ -f $dmfile ]; then + sed -e "s,^script.*,script\n\t#0x42#," \ + -e "s,#0x42#,# shutdown splashy - added by splashy plugin\n\t#0x42#," \ + -e "s,#0x42#,if [ ! -e /tmp/splashy-killed ]; then\n\t#0x42#, " \ + -e "s,#0x42#, LD_LIBRARY_PATH=/opt/openslx/uclib-rootfs/lib/ \\\\\n\t#0x42#," \ + -e "s,#0x42#, /opt/openslx/plugin-repo/bootsplash/bin/splashy_update exit \\\\\n\t#0x42#," \ + -e "s,#0x42#, 2>/dev/null \n\t#0x42#," \ + -e "s,#0x42#, touch /tmp/splashy-killed \n\t#0x42#," \ + -e "s,#0x42#,fi \n\t#0x42#," \ + -e "s,#0x42#,#splashy-stop-done#," \ + -i $dmfile 2>/dev/null & + fi + done + done fi fi fi |