~ubuntu-branches/ubuntu/maverick/util-linux/maverick-security

« back to all changes in this revision

Viewing changes to debian/util-linux.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-09-15 23:33:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090915233325-ss94sspy80r88pf2
Tags: 2.16-1ubuntu3
* Rename upstart jobs in source package, to fix the failure to include
  them when building the util-linux binary.
* Rename calls to update-rc.d in the util-linux postinst, which are going
  to fail on new installs because we no longer ship an init script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        rm -f /etc/rcS.d/???hwclock.sh
22
22
fi
23
23
 
24
 
# hwclock works on all Linux architectures, except s390 (and s390x, of course).
25
 
if [ "$(uname -s)" = "Linux" ]; then
26
 
    model=$(uname -m)
27
 
    if [ ${model%x} != "s390" ]; then
28
 
        update-rc.d -f hwclock.sh remove 2>/dev/null > /dev/null
29
 
        update-rc.d hwclock.sh stop 25 0 6 . > /dev/null
30
 
    fi
31
 
fi
32
 
 
33
24
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "2.14.2-1ubuntu4"; then
34
25
        # Remove old init script
35
26
        update-rc.d -f hwclockfirst.sh remove 2>/dev/null > /dev/null