systemd/debian/extra/debian-fixup
Martin Pitt 9e1d0901b5 Clean up Debian specific file installation
In debian/rules, remove manual file installation. Move them to
debian/*.install.

Move all Debian specific installed files to debian/extra/.
2015-01-22 09:46:15 +01:00

27 lines
546 B
Bash
Executable File

#! /bin/sh
set -e
if [ ! -L /etc/mtab ]; then
ln -sf /proc/mounts /etc/mtab
fi
# Migrate /var/run to be a symlink to /run, unless /run is already a
# symlink, to prevent loops.
if [ ! -L /var/run ]; then
if [ ! -L /run ]; then
rm -rf /var/run
ln -s /run /var/run
fi
fi
# Migrate /var/lock to be a symlink to /run/lock, unless /run/lock is
# already a symlink, to prevent loops.
if [ ! -L /var/lock ]; then
if [ ! -L /run/lock ]; then
rm -rf /var/lock
ln -s /run/lock /var/lock
fi
fi
exit 0