#!/bin/sh
killall -c HWNetMgr
killall -c HWNetCfg
sudo chown -R root:wheel /Library/StartupItems/HWNetMgr/
sudo chmod -R 755 /Library/StartupItems/
#DTS2014073007967 2014-08-02 begin
#sudo StartupItemContext /Library/StartupItems/HWNetMgr/HWNetMgr start&

sudo cp -f "$1/Contents/Resources/HWNetMgr.plist" "/Library/LaunchDaemons/"
sudo chmod -Rf 644 /Library/LaunchDaemons/HWNetMgr.plist
sudo chown -R root:wheel /Library/LaunchDaemons/HWNetMgr.plist
#DTS2014073007967 2014-08-02 end

sudo chown -R root:wheel /Library/StartupItems/HWNetMgr/
sudo chmod -R 755 /Library/StartupItems/