just a hint, might help others.. my mount script is not so .....innovative :)
And not so thoroughly tested.
-8<----[:edit: /etc/fstab ]-----------------------------
:
/dev/ttyS0 /tmp/owfs owfs allow_other,gid=509
0 0
:
gid mounts the system with group 509 ownership.
prior mounting, i thought necessary to ...sticky the group on folder (chmod
command)
mkdir /tmp/owfs
chmod g+s /tmp/owfs
but not sure if it is needed...
-8<----[:create: /sbin/mount.owfs ]-----------------------------
#!/bin/bash
#
# OWFS mount helper
# Based on mount.fuse v0.0.1 by Petr Klima <[EMAIL PROTECTED]>
#
# George M. Zouganelis <[EMAIL PROTECTED]>
#
VERSION="0.0.1"
PRGNAME=`basename $0`
USAGE="${PRGNAME} version ${VERSION}
usage: ${PRGNAME} mountpath mountpoint [fuse-opts]
example: ${PRGNAME} /dev/ttyS0 /mnt/owfs
"
function die {
echo -e "$PRGNAME# $1" >&2
[ -z "$2" ] && exit 128
exit "$2"
}
[ "$#" -ge 2 ] || die "${USAGE}"
export PATH
OWFSBIN=`which owfs 2>/dev/null` \
|| die "Can not find owfs mount binary " 1
MOUNTPATH="$1"
MOUNTPOINT="$2"
[ -d "${MOUNTPOINT}" ] || die "Directory ${MOUNTPOINT} does not exist"
shift
shift
ignore_opts="(user|nouser|users|auto|noauto|_netdev)"
OPTIONS=`echo $@ | sed -r "s/(,${ignore_opts}|${ignore_opts},)//g"`
if test -n "$OPTIONS"; then
${OWFSBIN} --fuse-opt "\"$OPTIONS\"" $MOUNTPATH $MOUNTPOINT
else
${OWFSBIN} $MOUNTPATH $MOUNTPOINT
fi
begin:vcard
fn:George M. Zouganelis
n:Zouganelis;George
org:Athens University of Economics and Business;Department of Management Science & Technology
adr:;;76, Patission Ave.;Athens;Attica;;GREECE
email;internet:gzoug(at)aueb(dot) gr
title:Technical Administrator
x-mozilla-html:FALSE
version:2.1
end:vcard
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers