15 lines
320 B
Bash
15 lines
320 B
Bash
#!/bin/sh
|
|
set -x
|
|
|
|
COMPUTERNAME=$(osascript -e '
|
|
tell application "Finder"
|
|
display dialog "Bitte geben Sie einen Computernamen ein" default answer ""
|
|
set COMPUTERNAME to the (text returned of the result)
|
|
end tell')
|
|
|
|
|
|
/usr/local/bin/jamf setComputerName -name "${COMPUTERNAME}"
|
|
/usr/local/bin/jamf recon
|
|
|
|
# Exit
|
|
exit 0 |