Having Trouble making packaged scripts run
I am trying to make two very simple packages that run postinstall scripts. One of them is a simple lpadmin command to add a printer and the other is a networksetup command to add a wireless network and WPA2 password.
My network script looks like this, when I run it at the command line it works fine. The package fails. What am I doing wrong?
#! /bin/bash
sudo networksetup -setairportnetwork en1 Wireless mywpapasssword