configure_chromium_browser.sh 360 B

12345678910111213
  1. #!/bin/ksh
  2. if [ ! -f /etc/chromium/policies/managed/openbsd.json ]; then
  3. {
  4. echo "{"
  5. echo " \"BackgroundModeEnabled\": false,"
  6. echo " \"NewTabPageLocation\": \"about:blank\""
  7. echo "}"
  8. } > /tmp/openbsd.json
  9. doas mkdir -p /etc/chromium/policies/managed
  10. doas mv /tmp/openbsd.json /etc/chromium/policies/managed/openbsd.json
  11. fi