02fdd053f1
tinc (1.0.28-1~bpo8+1) jessie-backports; urgency=medium * Rebuild for jessie-backports. tinc (1.0.28-1) unstable; urgency=medium * New upstream release. - Fixes FTBFS on kfreebsd. * Systemd service files are now provided by upstream.
30 lines
717 B
Bash
30 lines
717 B
Bash
#! /bin/sh
|
|
|
|
NETSFILE="/etc/tinc/nets.boot"
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
if [ ! -e /dev/.devfsd ] ; then if [ ! -e /dev/.devfs ] ; then
|
|
if [ ! -e /dev/net/tun ] ; then if [ ! -e /dev/tun ] ; then if [ -e /dev/MAKEDEV ]; then
|
|
echo "Creating tun device..."
|
|
cd /dev && ./MAKEDEV net/tun 2>/dev/null || ./MAKEDEV tun 2>/dev/null || echo "Failed to create tun device."
|
|
fi; fi; fi
|
|
fi; fi
|
|
|
|
if [ ! -e $NETSFILE ] ; then
|
|
echo "## This file contains all names of the networks to be started on system startup." > $NETSFILE
|
|
fi
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|