postinst is in linux-wlan-ng 0.2.9+dfsg-5.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/bin/sh -e
RELOADED=
if [ "$1" = configure ]; then
# Reload pcmcia config files, as this package drops a new one in.
if [ -x /etc/init.d/pcmciautils ]; then
# this solves the reload error
# but... it's necessary this reload??
if [ -z "$PCIC" ]; then
PCIC=foo invoke-rc.d pcmciautils reload || RELOADED=fail
else
invoke-rc.d pcmciautils reload || RELOADED=fail
fi
elif [ -x /etc/init.d/pcmcia ]; then
invoke-rc.d pcmcia reload || RELOADED=fail
fi
if [ "$RELOADED" = "fail" ]; then
echo "Reloading of pcmcia configuration files failed."
fi
# Uncomment when debian completely drops #HOTPLUG#
rmdir /etc/hotplug 2>/dev/null || true
fi
|