## use-test-binary.dpatch by Vagrant Cascadian <vagrant@freegeek.org>
##
## DP: use /usr/bin/test instead of relying on the shell test builtin, as bash
## DP: and dash behave inconsistantly. works around
## DP: http://bugs.debian.org/539909

Index: ltsp-trunk/localapps/ldm-rc.d/X01-localapps
===================================================================
--- ltsp-trunk.orig/localapps/ldm-rc.d/X01-localapps	2012-03-02 09:07:31.000000000 -0800
+++ ltsp-trunk/localapps/ldm-rc.d/X01-localapps	2012-03-02 09:08:16.356325063 -0800
@@ -122,7 +122,7 @@
 
 
     if [ -n "$myGroups" ]; then
-        if [ -w /etc ]; then
+        if /usr/bin/test -w /etc ; then
             oldifs="${IFS-not set}"
             IFS=,
             for ngroup in $tocreate; do
Index: ltsp-trunk/client/init-ltsp.d/common/50-cron
===================================================================
--- ltsp-trunk.orig/client/init-ltsp.d/common/50-cron	2012-02-28 09:25:02.999617000 -0800
+++ ltsp-trunk/client/init-ltsp.d/common/50-cron	2012-03-02 09:11:19.649234400 -0800
@@ -1,5 +1,5 @@
 CRON_FILE=/etc/cron.d/ltsp
-if [ ! -w "/etc/cron.d" ]; then
+if ! /usr/bin/test -w "/etc/cron.d" ; then
     echo "Warning: /etc/cron.d is not writeable."
     return 1
 fi
