Fix duplicate Syslinux entries
[grml2usb.git] / grml2usb
index c53f58b..5a94e10 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -1323,7 +1323,7 @@ def add_entry_if_not_present(filename, entry):
     @filename: name of the file
     @entry: data to write to the file
     """
-    data = open(filename, "a+")
+    data = open(filename, "r+")
     for line in data:
         if line == entry:
             break