Merge pull request #180 from beasteers/i2smic-nonint-patch-2
Make i2smic.py noninteractive
This commit is contained in:
commit
501435743e
1 changed files with 5 additions and 2 deletions
|
|
@ -23,7 +23,9 @@ I2S microphone support.
|
||||||
else:
|
else:
|
||||||
shell.bail("Unsupported Pi board detected.")
|
shell.bail("Unsupported Pi board detected.")
|
||||||
|
|
||||||
auto_load = shell.prompt("Auto load module at boot?")
|
auto_load = (
|
||||||
|
not shell.argument_exists('noautoload') and
|
||||||
|
shell.prompt("Auto load module at boot?", force_arg="autoload"))
|
||||||
|
|
||||||
print("""
|
print("""
|
||||||
Installing...""")
|
Installing...""")
|
||||||
|
|
@ -59,7 +61,8 @@ Installing...""")
|
||||||
|
|
||||||
Settings take effect on next boot.
|
Settings take effect on next boot.
|
||||||
""")
|
""")
|
||||||
shell.prompt_reboot()
|
if not shell.argument_exists('noreboot'):
|
||||||
|
shell.prompt_reboot(force_arg="reboot")
|
||||||
|
|
||||||
# Main function
|
# Main function
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue