diff options
author | Renato Botelho <renato@netgate.com> | 2017-09-27 13:19:02 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-09-27 13:19:41 -0300 |
commit | 1269d8032c2af7148be56e9c3d84aa94f4fa03fc (patch) | |
tree | 8e03da724032e592aff039c2f06b6e38f8af7237 /release/rc.local | |
parent | c1bc10f25476273c2fbcd4a91d79bfbb7e0d558b (diff) | |
download | FreeBSD-src-1269d8032c2af7148be56e9c3d84aa94f4fa03fc.zip FreeBSD-src-1269d8032c2af7148be56e9c3d84aa94f4fa03fc.tar.gz |
Show copyright notice before call installer
Diffstat (limited to 'release/rc.local')
-rwxr-xr-x | release/rc.local | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/release/rc.local b/release/rc.local index f0a868f..454a48b 100755 --- a/release/rc.local +++ b/release/rc.local @@ -27,6 +27,9 @@ fi if [ -f /root/factory-pre.sh ]; then sh -x /root/factory-pre.sh >/tmp/factory-pre.debug 2>&1 + unset CE_message +else + CE_message=1 fi MACHINE=`uname -m` @@ -83,6 +86,23 @@ if [ -f /etc/installerconfig ]; then exit fi +if [ -n "${CE_message}" ]; then + msg="pfSense(r) Community Edition software is distributed only for use by the community of pfSense users.\n\n" + msg="${msg}Copyright 2017 Rubicon Communications, LLC. All Rights Reserved.\n\n" + msg="${msg}Absolutely No Commercial Distribution Is Allowed." +else + msg="This software is only for use on platforms supplied by Rubicon Communications, LLC (Netgate).\n\n" + msg="${msg}Copyright 2017 Rubicon Communications, LLC. All Rights Reserved." +fi + +if [ ! -f /tmp/buildroom ]; then + exec 3>&1 + dialog --backtitle "pfSense Installer" \ + --title "Copyright and distribution notice" \ + --msgbox "${msg}" 0 0 2>&1 1>&3 + exec 3>&- +fi + IOPTS="\ \"Install\" \"Install pfSense\" \ \"Rescue Shell\" \"Launch a shell for rescue operations\"" |