diff --git a/lazyinstall/lazyinstall1.sh b/lazyinstall/lazyinstall1.sh index 8841f36..c5224ad 100644 --- a/lazyinstall/lazyinstall1.sh +++ b/lazyinstall/lazyinstall1.sh @@ -17,7 +17,7 @@ mount -t ext4 /dev/sda1 /mnt/sda1 echo 'Cleaning USB drive' -rm -r /mnt/sda1 +rm -r /mnt/sda1/ sleep 4 diff --git a/main.py b/main.py index b965136..48c6f88 100755 --- a/main.py +++ b/main.py @@ -48,6 +48,7 @@ class Meshenger: while True: print 'Entering main loop' + # if len(self.devices) > 0: print 'found', len(self.devices),'device(s)' @@ -187,7 +188,7 @@ Get new messages from other node based on it's index file Convert a node's ip into a hash and make a directory to store it's files """ if not os.path.exists('nodes'): - os.mkdir('nodes') + os.mkdir('nodes') import hashlib hasj = hashlib.md5(ip).hexdigest() diff --git a/meshenger_roadmap b/meshenger_roadmap new file mode 100644 index 0000000..58bd3ee --- /dev/null +++ b/meshenger_roadmap @@ -0,0 +1,6 @@ +-find a way to prioritize the index/message download threads. Perhaps these threads could tell other threads to pause? + +-nodes that are new to the network don't immediately download indices from the other nodes + +-nodes that disconnect from the network should be removed from lists of known devices +