/gist:2a60044b70c5bf85e335 Secret
Created
March 6, 2013 16:02
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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