Process new modified (i.e. added) dhcp binding files (Git flag MM) so that new files can be added (Fixes #1)

This commit is contained in:
2016-08-16 19:36:58 +02:00
parent 21ca9037a9
commit 608700bc65

2
sync-router Executable file → Normal file
View File

@@ -42,7 +42,7 @@ do
echo removing $filename as it is no longer in the repository echo removing $filename as it is no longer in the repository
ssh -q $router "delete /force $fileto$filename" ssh -q $router "delete /force $fileto$filename"
;; ;;
A |M) A |M|MM)
echo updating and uploading modified file $filename echo updating and uploading modified file $filename
head -2 $filename | while read tag value head -2 $filename | while read tag value
do do