diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index 8809189..6553bed 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -289,13 +289,17 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Mon rc = os.system(cmd) cmd = 'echo "exit 0" >> %s/ImageBoot/%s/etc/init.d/udev' % (media, target) rc = os.system(cmd) - + cmd = 'chmod 0755 %s/ImageBoot/%s/etc/init.d/udev' % (media, target) + rc = os.system(cmd) + if os.path.exists('%s/ImageBoot/%s/etc/init.d/mdev'% (media, target)): cmd = 'echo " " >> %s/ImageBoot/%s/etc/init.d/mdev' % (media, target) rc = os.system(cmd) cmd = 'echo "mount -a" >> %s/ImageBoot/%s/etc/init.d/mdev' % (media, target) rc = os.system(cmd) - + cmd = 'chmod 0755 %s/ImageBoot/%s/etc/init.d/mdev' % (media, target) + rc = os.system(cmd) + if LanWlan == 'True': if os.path.exists('%s/ImageBoot/%s/etc/vtiversion.info' % (media, target)): os.system('echo "Nie skopiowano LAN-WLAN, nie zalecane dla tego image."')