diff --git a/fixes/1-remove-machines b/fixes/1-remove-machines new file mode 100755 index 0000000..c0fcfdb --- /dev/null +++ b/fixes/1-remove-machines @@ -0,0 +1,20 @@ +BINARY=~/Downloads/.syncthing/syncthing +MYHOST=`uname -n` +myID=`${BINARY} --device-id` + +MASTER_LIST=/zz/zPrivate/secrets/master.list +SHARE_LIST=/zz/zPrivate/secrets/share.list + +${BINARY} cli config devices ${myID} name set ${MYHOST}.${USER} + +#grep -v ${myID} ${MASTER_LIST} > /tmp/final.1 +grep -v ${myID} ${SHARE_LIST} >> /tmp/final.1 + +for i in `cat /tmp/final.1` +do + echo $i + ${BINARY} cli config devices + + + add --device-id $i +done diff --git a/fixes/fix b/fixes/fix index 4aa5da3..38e4ed5 100755 --- a/fixes/fix +++ b/fixes/fix @@ -2,6 +2,7 @@ . /zz/zShared/fixes/0-env sh -x /zz/zShared/fixes/1-defaults sh -x /zz/zShared/fixes/1-machines +#sh -x /zz/zShared/fixes/1-remove-machines sh -x /zz/zShared/fixes/1-pushfolders sh -x /zz/zShared/fixes/3-fixlocalfolders