Skip to content

Instantly share code, notes, and snippets.

@keeleysam
Created March 6, 2013 16:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save keeleysam/2a60044b70c5bf85e335 to your computer and use it in GitHub Desktop.
#!/bin/sh
#############################################################################
#
# wifi profile install script
# Version 1.0.1, 2013-03-05
# Samuel Keeley, sam@keeleysam.com
#
#############################################################################
# Getting package root path.
# Root path is given as $1 argument with bundle's path.
root_path="$1"
echo "Package root path: ${root_path}"
echo Currently installed profiles
sudo /usr/bin/profiles -L
echo installing wifi profile
sudo /usr/bin/profiles -I -F "${root_path}/Contents/Resources/WiFi.mobileconfig"
echo Currently installed profiles
sudo /usr/bin/profiles -L
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment