diff --git a/ambient_manifest.json b/ambient_manifest.json index 3fcb6ed..b6a418d 100644 --- a/ambient_manifest.json +++ b/ambient_manifest.json @@ -11,6 +11,16 @@ "type": "shell" }, { + "item": "Set Hostname", + "version": "", + "url": "repo/corsica/set-computername.sh", + "filename": "", + "dmg-installer": "", + "dmg-advanced": "", + "hash": "f8637dbebffca5af886953e69c912753ce84b913621fd52557ea72ddffbeb7f7", + "type": "shell" + }, + { "item": "Set Do Not Disturb", "version": "", "url": "repo/corsica/set-donotdisturb.sh", diff --git a/config.py b/config.py index 037e657..0961848 100755 --- a/config.py +++ b/config.py @@ -82,7 +82,7 @@ raw_url = "https://raw.githubusercontent.com/%s/%s/%s/" % (org, repo, branch) manifest_url = "https://raw.githubusercontent.com/%s/%s/%s/%s" % (org, repo, branch, manifest) manifest_file = "%s/%s" % (local_dir, manifest) default_manifest_hash = "61f6fc9b2bf9f2711c9eb4e2e9032dc825534fba83b02db0f1fcda09fb3fbdb5" -ambient_manifest_hash = "c7d84f21277521d76e4125ff752be1682be01a081f585edf6dd82050ca0b17c8" +ambient_manifest_hash = "57db3f9cbae7c5fd75a1c66056421f8a1e8f29454f61d7a84d63a971609c9332" manifest_hash = default_manifest_hash if manifest == "ambient_manifest.json": manifest_hash = ambient_manifest_hash diff --git a/repo/corsica/set-computername.sh b/repo/corsica/set-computername.sh new file mode 100755 index 0000000..797f09c --- /dev/null +++ b/repo/corsica/set-computername.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +read -p 'Enter desired hostname: ' hostname + +echo "Setting LocalHostName and ComputerName to ${hostname}" + +scutil --set LocalHostName $hostname +scutil --set ComputerName $hostname