Create Parallels Desktop virtual network adapters

From radmind

Jump to: navigation, search

This script will create the virtual private networks required for Parallels Desktop. These are normally created during installation, but as the changes are written to /Library/ Preferences/SystemConfiguration, most Radmind deployments won't capture it because that file is negative.

#!/bin/sh
# Portions from Greg Neagle

GREP=/usr/bin/grep

$GREP '/Applications/Parallels/Parallels\\bDesktop.app' $1 > /dev/null 2>&1

if [ $? -eq 0 ]; then
     echo "Creating Pvsvnic device configurations for Parallels..."
     /Applications/Parallels/Parallels\ Desktop.app/Contents/Resources/PvsvnicConfigure
    # give system some time to react
    sleep 3
fi

exit 0;
Personal tools