Public bug reported:

Binary package hint: alsa-utils

alsa-utils deb postinst script removes `/etc/rcS.d/S50alsa-utils' and no
start rc script link is installed (at any run level) by update-rc.d,
this results in failure to restore alsa setting on Eee at boot.

#!/bin/sh

set -e

case "$1" in
  configure)
        if dpkg --compare-versions "$2" lt "1.0.10-1ubuntu6"; then
                rm -f /etc/alsa/modprobe-post-install.d/alsa-utils
                rmdir /etc/alsa/modprobe-post-install.d 2>/dev/null || true
                rmdir /etc/alsa 2>/dev/null || true

                rm -f /etc/udev/alsa-utils.rules

                rm -f /etc/rcS.d/S50alsa-utils # <---- Removal of old start 
link - OK for [re]configuration
                rm -f /etc/udev/rules.d/z60_alsa-utils.rules
        fi
        ;;
  abort-upgrade|abort-remove|abort-deconfigure)
        # Nothing to do because we didn't take any action in the prerm
        ;;
  *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

# Automatically added by dh_installinit
if [ -x "/etc/init.d/alsa-utils" ]; then
        update-rc.d alsa-utils stop 50 0 6 . >/dev/null || exit $?  # <---- No 
alsa-utils start linked at rcS.d - Not OK
fi
# End automatically added section
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
        update-menus
fi
# End automatically added section


$ lsb_release -rd
Description:    Ubuntu 8.04
Release:        8.04


$ dpkg -l alsa-utils
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  alsa-utils     1.0.15-3ubuntu ALSA utilities

** Affects: alsa-utils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
upgrade from Gutsy to Hardy removes /etc/rcS.d/S50alsa-utils: breaks setting 
restore at boot on Eee
https://bugs.launchpad.net/bugs/230886
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to