@george1421
Here is my fog.postdownload
#!/bin/bash
. /usr/share/fog/lib/funcs.sh
curl -A "" -Lkso /tmp/hinfo.sh "${web}/service/hostinfo.php?mac=$mac"
. /tmp/hinfo.sh
[[ -z $postdownpath ]] && postdownpath="/images/postdownloadscripts/"
case $osid in
5|6|7|9)
clear
[[ ! -d /ntfs ]] && mkdir -p /ntfs
getHardDisk
if [[ -z $hd ]]; then
handleError "Could not find hdd to use"
fi
getPartitions $hd
for part in $parts; do
true
done
dots "Mounting partition $part"
ntfs-3g -o force,rw $part /ntfs >/dev/null 2>&1
if [[ ! $? -eq 0 ]]; then
echo "Failed"
debugPause
handleError "Failed to mount $part ($0)\n Args: $*"
fi
echo "Done"
case $othertag in
[Bb][Aa][Yy])
. ${postdownpath}fog.log
. ${postdownpath}fog.replace-files_bay
. ${postdownpath}fog.drivers
. ${postdownpath}fog.ad_bay
. ${postdownpath}fog.DesktopInfo
;;
[Mm][Pp][Mm][Ii])
. ${postdownpath}fog.log
. ${postdownpath}fog.replace-files_mpmi
. ${postdownpath}fog.drivers
. ${postdownpath}fog.ad_mpmi
. ${postdownpath}fog.DesktopInfo
;;
[Hh][Oo][Mm][Ee])
. ${postdownpath}fog.log
. ${postdownpath}fog.replace-files_home
. ${postdownpath}fog.drivers
;;
[Mm][Tt][Ss])
. ${postdownpath}fog.log
. ${postdownpath}fog.replace-files_fog
. ${postdownpath}fog.drivers
. ${postdownpath}fog.ad_bay
. ${postdownpath}fog.DesktopInfo
;;
*)
we use the $othertag to do different things for our sister companies.
How is $part determined?