Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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