diff options
author | Dirk von Suchodoletz | 2007-04-07 13:47:42 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-04-07 13:47:42 +0200 |
commit | 7d9c88e8c36e75a4a28c33d76a1808eb020513bd (patch) | |
tree | 53027460775491d7edf9f6ba1fdbe37ff40491b4 /initramfs/distro-specs/suse/functions-default | |
parent | Added packages to support nbd/squash exports in SuSE10.2 (nbd is present (diff) | |
download | core-7d9c88e8c36e75a4a28c33d76a1808eb020513bd.tar.gz core-7d9c88e8c36e75a4a28c33d76a1808eb020513bd.tar.xz core-7d9c88e8c36e75a4a28c33d76a1808eb020513bd.zip |
The acpi/powersaved heavily depend on dbus (on SuSE 10++ systems),
cleanup in functions scripts, reordering, switching on if acpi is used
...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@869 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/suse/functions-default')
-rw-r--r-- | initramfs/distro-specs/suse/functions-default | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/initramfs/distro-specs/suse/functions-default b/initramfs/distro-specs/suse/functions-default index 92a032f5..a072a493 100644 --- a/initramfs/distro-specs/suse/functions-default +++ b/initramfs/distro-specs/suse/functions-default @@ -357,6 +357,15 @@ sed -e "s,RC_LANG=.*,RC_LANG=\"${LANG}\" # added in initrd," \ -i /mnt/etc/${D_SYSCONFDIR}/language } +# acpi and powersave daemons, required e.g. to shutdown the machine via +# power button, no need for early start +config_acpi () { +rllinker acpid "22" "12" +rllinker powersaved "23" "11" +# dbus is required to run acpid and powersaved +start_dreshal="yes" +} + # configure dbus (inter application communication for kde and gnome), hal # (hardware abstraction layer - used e.g. by powersaved) and resmgr # (resource manager - the user gets permissions to devices when loggin on) @@ -379,8 +388,8 @@ if [ "x$start_dreshal" = "xyes" ]; then fi if [ -f /mnt/etc/${D_INITDIR}/resmgr ] ; then testmkd /mnt/var/run/resmgr/classes - start="0"`expr $start + 1` - stop="0"`expr $start - 1` + start="0"$(expr $start + 1) + stop="0"$(expr $start - 1) rllinker "resmgr" "$start" "$stop" fi if [ -f /mnt/etc/${D_INITDIR}/haldaemon ] ; then @@ -393,8 +402,8 @@ if [ "x$start_dreshal" = "xyes" ]; then # set permissions with userid echo -e "\tchown haldaemon:haldaemon /var/run/hal 2>/dev/null" \ >>/mnt/etc/${D_INITDIR}/boot.slx - start="0"`expr $start + 1` - stop="0"`expr $start - 1` + start="0"$(expr $start + 1) + stop="0"$(expr $start - 1) rllinker "haldaemon" "$start" "$stop" fi fi |