#!/bin/bash
"""
This is an older program which was part of my
first attempts with python and OWFS. Like some of the others
I no longer use it but it is included for you to examine if you wish.

 Copyright (c) 2010 Norman Elliott. All rights reserved.
 This program or module 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
 version 3 of the License, or (at your option) any later version. It is
 provided and is distributed in the hope that  it will be useful, but 
 WITHOUT ANY WARRANTY; without even the implied  warranty of 
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 See the GNU General Public License for more details.

"""

if [ -d $HOME/button ]
then
	echo .
else
	mkdir $HOME/button
fi

ls $HOME/1-wire>$HOME/button/button.txt


