~thopiekar/+junk/systemd-packaging

« back to all changes in this revision

Viewing changes to debian-fixup

  • Committer: Thomas-Karl Pietrowski
  • Date: 2015-03-19 18:44:31 UTC
  • Revision ID: thopiekar@googlemail.com-20150319184431-1bwb6gzkhrb1kfx6
sync with vivid's 219 package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
if [ ! -L /etc/mtab ]; then
6
 
    ln -sf /proc/mounts /etc/mtab
7
 
fi
8
 
 
9
 
# Migrate /var/run to be a symlink to /run, unless /run is already a
10
 
# symlink, to prevent loops.
11
 
if [ ! -L /var/run ]; then
12
 
    if [ ! -L /run ]; then
13
 
        rm -rf /var/run
14
 
        ln -s /run /var/run
15
 
    fi
16
 
fi
17
 
 
18
 
# Migrate /var/lock to be a symlink to /run/lock, unless /run/lock is
19
 
# already a symlink, to prevent loops.
20
 
if [ ! -L /var/lock ]; then
21
 
    if [ ! -L /run/lock ]; then
22
 
        rm -rf /var/lock
23
 
        ln -s /run/lock /var/lock
24
 
    fi
25
 
fi
26
 
exit 0