Added some more Screenshots and fixes

This commit is contained in:
2020-12-02 17:23:24 +01:00
parent 132f4108fd
commit 7761737094
13 changed files with 20 additions and 12 deletions

View File

@ -106,14 +106,16 @@ check_dep "${SED_BIN}" "sed"
# https://raw.githubusercontent.com/casualscripter/debian-stuff
check_dep "${PPEPY_BIN}" "print_plist_entry.py"
check_ext "${SOURCE}" "[eE]01|dd|DD|raw|RAW|img|IMG"
check_ext "${SOURCE}" "[eE]01"
check_tmp
#-------------------------------------------------------------------------------
# A little bit of configuration before the magic.
#-------------------------------------------------------------------------------
readonly OFFSET="$( choose_partition "${SOURCE}" | ${AWK_BIN} -F "_" '{ print $3; }' )"
readonly TIMEZONE="${DIRNAME}/timezone.txt"
readonly TIMEZONE="${TMP}/timezone-${OFFSET}.txt"
#-------------------------------------------------------------------------------
# The wonder...
@ -142,18 +144,18 @@ if ${FSSTAT_BIN} -o "${OFFSET}" "${SOURCE}" > /dev/null 2>&1 ; then
-n "/Library/Preferences/.GlobalPreferences.plist" \
"${SOURCE}" )"
if [ "${pref}" != "File not found" ] ; then
if [ ! -f "${DIRNAME}/GlobalPreferences.plist" ] ; then
if [ ! -f "${TMP}/GlobalPreferences.plist" ] ; then
if ! ${ICAT_BIN} -o "${OFFSET}" "${SOURCE}" "${pref}" > "/tmp/${pref}.plist" ; then
echo " During the execution of icat an error occurred." >> "${TIMEZONE}"
fi
${PLUTIL_BIN} -i "/tmp/${pref}.plist" -o "${DIRNAME}/GlobalPreferences.plist"
${PLUTIL_BIN} --format xml --infile "/tmp/${pref}.plist" --outfile "${TMP}/GlobalPreferences.plist"
${RM_BIN} "/tmp/${pref}.plist"
# since 10.10 (Yosemite) it seems, that the converted XML is not well formed!?
${SED_BIN} --in-place --regexp-extended '/<key>AppleLanguages<\/key>/,/<\/array>/ s/string/key/g' "${DIRNAME}/GlobalPreferences.plist"
# since 10.10 (Yosemite) it seems, that the converted XML is not well formed!?
#${SED_BIN} --in-place --regexp-extended '/<key>AppleLanguages<\/key>/,/<\/array>/ s/string/key/g' "${TMP}/GlobalPreferences.plist"
fi
echo -e -n " Some content from \".GlobalPreferences.plist\":\n " \
>> "${TIMEZONE}"
${PPEPY_BIN} "${DIRNAME}/GlobalPreferences.plist" TimeZoneName \
${PPEPY_BIN} "${TMP}/GlobalPreferences.plist" TimeZoneName \
>> "${TIMEZONE}"
echo >> "${TIMEZONE}"
else
@ -165,13 +167,13 @@ if ${FSSTAT_BIN} -o "${OFFSET}" "${SOURCE}" > /dev/null 2>&1 ; then
"${SOURCE}" )"
if [ "${auto}" != "File not found" ] ; then
if [ ! -f "${auto}.plist" ] ; then
if ! ${ICAT_BIN} -o "${OFFSET}" "${SOURCE}" "${auto}" > "${DIRNAME}/com.apple.timezone.auto.plist" ; then
if ! ${ICAT_BIN} -o "${OFFSET}" "${SOURCE}" "${auto}" > "${TMP}/com.apple.timezone.auto.plist" ; then
echo " During the execution of icat an error occurred." >> "${TIMEZONE}"
fi
fi
echo -e -n " Some content from \"com.apple.timezone.auto.plist\":\n " \
>> "${TIMEZONE}"
${PPEPY_BIN} "${DIRNAME}/com.apple.timezone.auto.plist" Active \
${PPEPY_BIN} "${TMP}/com.apple.timezone.auto.plist" Active \
>> "${TIMEZONE}"
echo >> "${TIMEZONE}"
else