-define Package/olsrd/preinst
-#!/bin/sh
-# check if we are on real system
-if [ -z "$${IPKG_INSTROOT}" ]; then
- [ -f /etc/config/olsrd ] && cp /etc/config/olsrd /etc/config/olsrd.opkg-old
-fi
-exit 0
-endef
-
-define Package/olsrd/postinst
-#!/bin/sh
-# check if we are on real system
-if [ -z "$${IPKG_INSTROOT}" ]; then
- if [ -f /etc/config/olsrd.opkg-old ]; then
- mv /etc/config/olsrd.opkg-old /etc/config/olsrd
- echo "********** WARNING ***************"
- echo "/etc/config/olsrd is no longer used! This will prevent olsrd to start."
- echo "Please use /etc/config/olsrd4 for IPv4 and /etc/config/olrsd6 for IPv6"
- echo "Remember to remove option IpVersion from your config file"
- fi
-fi
-exit 0
-endef
-