1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# $FreeBSD# if [ "$2" != "POST-INSTALL" ]; then exit 0 fi pmkconf=%%PREFIX%%/etc/pmk/pmk.conf if [ -f $pmkconf ]; then mv -f ${pmkconf} ${pmkconf}.bak %%PREFIX%%/bin/pmksetup mv -f ${pmkconf} ${pmkconf}.dist mv -f ${pmkconf}.bak ${pmkconf} else %%PREFIX%%/bin/pmksetup cp -fp ${pmkconf} ${pmkconf}.dist fi exit 0