#!/bin/sh
#button5
# Copyright (C) 2002 by Peter Pfrang <peter.pfrang@gmx.de>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.


# stop recording by killing all arecord processes
/usr/bin/killall arecord

# read the filename from the temporary file and store it in a variable
filename=`< /tmp/record1.tmp`

# change the access rights of the filename
# check the user, this may not fit to your system!!!
/bin/chown geo.users $filename
/bin/rm -f /tmp/record1.tmp 
