You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
426 B

  1. #!/bin/sh
  2. [ -e /etc/config/attendedsysupgrade ] && return 0
  3. touch /etc/config/attendedsysupgrade
  4. uci -q batch <<EOF
  5. set attendedsysupgrade.server=server
  6. set attendedsysupgrade.server.url='https://example.org'
  7. set attendedsysupgrade.client=client
  8. set attendedsysupgrade.client.upgrade_packages='1'
  9. set attendedsysupgrade.client.auto_search='0'
  10. set attendedsysupgrade.client.advanced_mode='0'
  11. commit attendedsysupgrade
  12. EOF