diff options
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py index 93fc447..55f2317 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -101,7 +101,9 @@ def main(args): fp = open(board_device_file, "w") fp.write(device_line) fp.close() - fp = open("lavalab-udev-%s.rules" % lab_name, "w") + if not os.path.isdir("udev"): + os.mkdir("udev") + fp = open("udev/99-lavalab-udev-%s.rules" % lab_name, "w") fp.write(udev_line) fp.close() if lab.has_key("dispatcher_ip"): |