[pkg-wpa-devel] r1421 - /crda/trunk/debian/crda.postinst
kelmo-guest at users.alioth.debian.org
kelmo-guest at users.alioth.debian.org
Sun Aug 16 12:57:24 UTC 2009
Author: kelmo-guest
Date: Sun Aug 16 12:57:24 2009
New Revision: 1421
URL: http://svn.debian.org/wsvn/pkg-wpa/?sc=1&rev=1421
Log:
Simplify postinst a bit
Modified:
crda/trunk/debian/crda.postinst
Modified: crda/trunk/debian/crda.postinst
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/crda.postinst?rev=1421&op=diff
==============================================================================
--- crda/trunk/debian/crda.postinst (original)
+++ crda/trunk/debian/crda.postinst Sun Aug 16 12:57:24 2009
@@ -20,6 +20,9 @@
create_regdomain_matrix()
{
+ # Check the input file exists
+ [ -s "$1" ] || return 0
+
# The conffile has been removed, do nothing.
[ -w /etc/default/crda ] || return 0
@@ -71,16 +74,8 @@
}
case "$1" in
- configure)
- ZONE_TAB=/usr/share/zoneinfo/zone.tab
- if [ -s "$ZONE_TAB" ]; then
- create_regdomain_matrix "$ZONE_TAB"
- fi
- ;;
- triggered)
- if [ -s "$2" ]; then
- create_regdomain_matrix "$2"
- fi
+ configure|triggered)
+ create_regdomain_matrix /usr/share/zoneinfo/zone.tab
;;
abort-upgrade|abort-deconfigure|abort-remove)
;;
More information about the Pkg-wpa-devel
mailing list