Index: make/samba/files/root/etc/default.samba/samba_conf
===================================================================
--- make/samba/files/root/etc/default.samba/samba_conf (revision 3043)
+++ make/samba/files/root/etc/default.samba/samba_conf (working copy)
@@ -1,5 +1,8 @@
#!/bin/sh
+CFGCTL=`which usbcfgctl`
+[ -z "$CFGCTL" ] && CFGCTL=ar7cfgctl
+
echo "### global"
cat << EOF
@@ -34,7 +37,7 @@
echo "### default"
-if [ "`echo usbhost.samba_server_enabled | ar7cfgctl -s`" = "yes" ]; then
+if [ "`echo usbhost.samba_server_enabled | $CFGCTL -s`" = "yes" ]; then
#if [ "$SAMBA_DEFAULT_SHARE" = "yes" ]; then
for SHARE in /var/media/ftp/* ; do
if test -d $SHARE ; then
@@ -43,13 +46,13 @@
echo " path = $SHARE"
echo " user = ftpuser"
- if [ "$(echo usbhost.readonly | ar7cfgctl -s)" != "yes" ] ; then
+ if [ "$(echo usbhost.readonly | $CFGCTL -s)" != "yes" ] ; then
echo " read only = no"
else
echo " read only = yes"
fi
- if [ "$(echo usbhost.password | ar7cfgctl -s)" = "\"\"" ] ; then
+ if [ "$(echo usbhost.password | $CFGCTL -s)" = "\"\"" ] ; then
echo " guest ok = yes"
fi