␉␉# check for see if there are any boot options in the temporary directory␊ |
␊ |
␉␉cd "${tempDir}"␊ |
␉␉Dirlist=$(find . -type d | grep "@")␊ |
␉␉Dirlist=$(find . -type f | grep "@")␊ |
␊ |
␉␉if [ "${Dirlist}" ]; then␊ |
␊ |
|
␉␉␉echo "Build Extra/com.apple.Boot.plist"␊ |
␉␉␉echo "********************************"␊ |
␊ |
␉␉␉for directory in $Dirlist ; do␊ |
␉␉␉␉overide=$(echo $directory | sed 's/_/ /g' | tr -d "./@" |cut -d '+' -f1)␊ |
␉␉␉␉string=$(echo $directory | tr -d "./@" |cut -d'+' -f2)␊ |
␉␉␉for bootOptionFile in $Dirlist ; do␊ |
␉␉␉␉overide=$(echo $bootOptionFile | sed 's/_/ /g' | tr -d "./@" |cut -d '+' -f1)␊ |
␉␉␉␉string=$(echo $bootOptionFile | tr -d "./@" |cut -d'+' -f2)␊ |
␊ |
␉␉␉␉bootoptionshdextra[1]="<key>${overide}</key>"␊ |
␉␉␉␉bootoptionshdextra[2]="<string>${string}</string>"␊ |
|
␉␉␉#Note - Can this be somehow included above and delete the directory after reading it? ␊ |
␊ |
␉␉␉#cd "${3}/.Chameleon/"␊ |
␉␉␉Dirlist=$(find . -type d | grep "@")␊ |
␉␉␉for directory in $Dirlist ; do␊ |
␉␉␉␉echo $directory␊ |
␉␉␉␉rm -rf $directory␊ |
␉␉␉Dirlist=$(find . -type f | grep "@")␊ |
␉␉␉for bootOptionFile in $Dirlist ; do␊ |
␉␉␉␉echo $bootOptionFile␊ |
␉␉␉␉rm -rf $bootOptionFile␊ |
␉␉␉done␊ |
␊ |
␉␉␉echo "-----------------------------------------------"␊ |