#!/bin/sh
set -e

if [ -d /opt ] && [ ! -L /opt ]; then
	mv /opt /opt-wrong
fi
if [ ! -e /opt ]; then
	ln -s /targets/links/opt /opt
fi
