~ubuntu-branches/ubuntu/oneiric/sysvinit/oneiric

« back to all changes in this revision

Viewing changes to debian/initscripts.postinst

  • Committer: Steve Langasek
  • Date: 2011-07-13 20:44:04 UTC
  • Revision ID: steve.langasek@canonical.com-20110713204404-6fkv6gcl684w27vr
Tags: 2.88dsf-13.10ubuntu1
clean up /run/motd if we find this present in the chroot case; this was
created by the premature base-files upload and should be overwritten.

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
# without a system restart.
210
210
#
211
211
 
 
212
# Special case /run/motd, which will have been created on upgrade by
 
213
# the premature base-files transition.
 
214
if dpkg --compare-versions "$2" lt-nl 2.88dsf-13.10ubuntu1 && [ -e /run/motd ]
 
215
then
 
216
        rm -f /run/motd
 
217
fi
 
218
 
212
219
# If in a chroot or vserver environment (i.e. a guest, which does not
213
220
# run rcS scripts), do not do any messing around with mounts, and
214
221
# don't migrate /var/run, /var/lock or /dev/shm.  Bind mounting would