#!/bin/bash ########################################################################## # Script : Change FW-PW # Autor : Andreas Vogel # Copyright : macenterprise gmbh, 2021 ########################################################################## unset setpassword_fv unset rotatepassword_fv ############################################# Variablen ######################################################################### Status=$(fdesetup status | cut -d ' ' -f 3) echo $Status user=$(stat -f '%u %Su' /dev/console | cut -d ' ' -f 2) APASS=$(osascript -e 'text returned of (display dialog "Enter the login password" with hidden answer default answer "" buttons {"OK"} default button 1)') ############################################# Funktion ######################################################################### setpassword_fv () { expect <