Page 1 of 1

patch: allow a autorunscript to enable ar_nowait

Posted: 28 Jun 2011, 17:57
by gernot
Allow the user to activate ar_nowait from a script using "touch /etc/ar_nowait"


[email protected] /root % diff -c /livemnt/squashfs/usr/sbin/autorun /usr/sbin/autorun
*** /livemnt/squashfs/usr/sbin/autorun 2011-06-25 15:23:32.000000000 +0000
--- /usr/sbin/autorun 2011-06-28 19:55:52.182153147 +0000
***************
*** 156,161 ****
--- 156,164 ----
if found==0:
found+=search_autoruns(curdir, ar_autoruns, copyfilefct_basic)

+ # ---- remove user setable ar_nowait flag if set ----
+ if os.path.isfile('/etc/ar_nowait'):
+ os.unlink('/etc/ar_nowait')
# ---- execute the autorun scripts found ----
for curfile in autorunfiles:
processdostextfiles(curfile)
***************
*** 182,187 ****
--- 185,192 ----
os.unlink(curfile)

# ---- wait a keypress feature -----
+ if os.path.isfile('/etc/ar_nowait'):
+ ar_nowait='y'
if ar_nowait=='n' and len(autorunfiles)>0:
print 'end of autorun scripts, press <Enter> to continue'
sys.stdin.read(1)

Re: patch: allow a autorunscript to enable ar_nowait

Posted: 09 Jul 2011, 06:37
by admin
Thanks for your contrib, it will be in the next beta version