Skip to content
Permalink
Browse files

Update the FOS build to current state of files in FOG working branch

as a preperation to entirely move those over to this repo.
  • Loading branch information...
Sebastian-Roth committed Dec 30, 2017
1 parent 2bfc7eb commit 1ffca088031720c67471e9422d7dc9c4734e8ed7
Showing with 2,973 additions and 6,254 deletions.
  1. +29 −4 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog
  2. +11 −5 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.auto.reg
  3. +13 −15 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.av
  4. +24 −35 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.capone
  5. +6 −4 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.checkin
  6. +3 −1 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.checkmount
  7. +9 −3 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.chntpw
  8. +2 −7 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.chpass
  9. +0 −1 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.debug
  10. +10 −6 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.download
  11. +0 −15 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.fork
  12. +8 −4 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.imgcomplete
  13. +5 −2 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.inventory
  14. +19 −13 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.man.reg
  15. +4 −4 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.mount
  16. +3 −1 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.nonimgcomplete
  17. +3 −3 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.photorec
  18. +3 −1 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.statusreporter
  19. +3 −2 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.surfacetest
  20. +8 −2 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.sysinfo
  21. +0 −1 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.testdisk
  22. +57 −5 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.upload
  23. +0 −1 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.wipe
  24. +0 −36 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.capture
  25. +0 −29 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.deploy
  26. +0 −25 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.enablewritecache
  27. +0 −51 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.expandpartition
  28. +0 −13 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.getdisks
  29. +0 −23 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.getpartitions
  30. +0 −78 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.shrinkpartition
  31. +0 −197 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.sysinfo
  32. +0 −21 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.testdisk
  33. +0 −50 Buildroot/board/FOG/FOS/rootfs_overlay/bin/fos.wipe
  34. +0 −56 Buildroot/board/FOG/FOS/rootfs_overlay/etc/X11/xinit/xinitrc
  35. +0 −94 Buildroot/board/FOG/FOS/rootfs_overlay/etc/X11/xorg.conf
  36. +0 −40 Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S01logging
  37. +0 −53 Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S10udev
  38. +0 −54 Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S20urandom
  39. +0 −23 Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S26gdk-pixbuf
  40. +14 −11 Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S40network
  41. +15 −11 Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S99fog
  42. +0 −25 Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/rcS
  43. +2 −13 Buildroot/board/FOG/FOS/rootfs_overlay/etc/inittab
  44. BIN Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/BCD
  45. +0 −20 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/bootloader.sh
  46. +0 −5 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/launchKiosk.sh
  47. 0 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/EOFCHNTPW
  48. 0 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/EOFFIXPARTS
  49. +0 −2 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/EOFNTFS
  50. +0 −2 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/EOFNTFSRESTORE
  51. 0 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/EOFRESTOREPART
  52. +317 −149 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/funcs.sh
  53. +103 −87 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/partition-funcs.sh
  54. +690 −486 Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/procsfdisk.awk
  55. BIN Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/mbr/vista.mbr
  56. BIN Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/mbr/win7.mbr
  57. BIN Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/mbr/win8.mbr
  58. 0 Buildroot/package/cabextract/Config.in
  59. 0 Buildroot/package/cabextract/cabextract.mk
  60. 0 Buildroot/package/chntpw/Config.in
  61. 0 Buildroot/package/chntpw/chntpw.mk
  62. 0 Buildroot/package/chntpw/chntpw.patch
  63. +12 −0 Buildroot/package/dmidecode/0002-fix-smbios-version.patch
  64. +0 −12 Buildroot/package/dmidecode/dmidecode-smbios-update.patch
  65. +0 −5 Buildroot/package/efibootmgr/Config.in
  66. +0 −25 Buildroot/package/efibootmgr/efibootmgr.mk
  67. +0 −65 Buildroot/package/eudev/eudev.mk
  68. 0 Buildroot/package/fog/Config.in
  69. +1 −0 Buildroot/package/fog/fog.hash
  70. 0 Buildroot/package/fog/fog.mk
  71. +0 −31 Buildroot/package/fogsplash/Config.in
  72. +0 −2,418 Buildroot/package/fogsplash/FOGSPLASH.patch
  73. +0 −11 Buildroot/package/fogsplash/psplash-quit.service
  74. +0 −11 Buildroot/package/fogsplash/psplash-start.service
  75. +0 −26 Buildroot/package/fogsplash/psplash.mk
  76. +5 −5 Buildroot/package/gptfdisk/Config.in
  77. +11 −0 Buildroot/package/gptfdisk/gptfdisk.mk
  78. +4 −0 Buildroot/package/iperf/iperf.hash
  79. 0 Buildroot/package/libmspack/Config.in
  80. 0 Buildroot/package/libmspack/libmspack.mk
  81. +23 −0 Buildroot/package/mdadm/mdadm.mk
  82. +0 −3 Buildroot/package/mpd/mpd.hash
  83. +0 −263 Buildroot/package/mpd/mpd.mk
  84. +3 −2 Buildroot/package/newConf.in
  85. +1 −0 Buildroot/package/partclone/Config.in
  86. +0 −160 Buildroot/package/partclone/partclone-0.2.88.patch
  87. +79 −0 Buildroot/package/partclone/partclone-0.2.89.patch
  88. +2 −2 Buildroot/package/partclone/partclone.mk
  89. +14 −0 Buildroot/package/partimage/Config.in
  90. +50 −0 Buildroot/package/partimage/partimage-0.6.9-configure.patch
  91. +48 −0 Buildroot/package/partimage/partimage-0.6.9-fifo.patch
  92. +40 −0 Buildroot/package/partimage/partimage-0.6.9-fog.patch
  93. +33 −0 Buildroot/package/partimage/partimage-0.6.9-nmu.patch
  94. +28 −0 Buildroot/package/partimage/partimage-0.6.9-nolibintl.patch
  95. +297 −0 Buildroot/package/partimage/partimage-0.6.9-rawdev.patch
  96. +14 −0 Buildroot/package/partimage/partimage.mk
  97. 0 Buildroot/package/pigz/Config.in
  98. +1 −1 Buildroot/package/pigz/pigz.hash
  99. +1 −1 Buildroot/package/pigz/pigz.mk
  100. 0 Buildroot/package/testdisk/Config.in
  101. 0 Buildroot/package/testdisk/testdisk.mk
  102. +0 −111 Buildroot/package/webkitgtk/webkitgtk.mk
  103. +0 −15 Buildroot/package/x11r7/xapp_xinit/xapp_xinit.mk
  104. +4 −0 Buildroot/package/zstd/Config.in
  105. +1 −0 Buildroot/package/zstd/zstd.hash
  106. +20 −0 Buildroot/package/zstd/zstd.mk
  107. +24 −33 build.sh
  108. +409 −580 configs/fsx64.config
  109. +487 −685 configs/fsx86.config
@@ -1,6 +1,34 @@
#!/bin/bash
. /usr/share/fog/lib/funcs.sh
if [[ -n $mode && $mode != +(*debug*) ]]; then
### If USB Boot device we need a way to get the kernel args properly
if [[ $boottype == usb && ! -z $web ]]; then
sysuuid=$(dmidecode -s system-uuid)
sysuuid=${sysuuid,,}
mac=$(getMACAddresses)
curl -Lks -o /tmp/hinfo.txt --data "sysuuid=${sysuuid}&mac=$mac" "${web}service/hostinfo.php" -A ''
[[ -f /tmp/hinfo.txt ]] && . /tmp/hinfo.txt
fi
dots "Running post init scripts"
[[ ! -d /imagesinit ]] && mkdir /imagesinit >/dev/null 2>&1
umount /imagesinit >/dev/null 2>&1
mount -o nolock,proto=tcp,rsize=32768,wsize=32768,intr,noatime "$storage" /imagesinit >/tmp/mount-output 2>&1
if [[ $? -eq 0 ]]; then
if [[ -f /imagesinit/.mntcheck ]]; then
if [[ -f /imagesinit/postinitscripts/fog.postinit ]]; then
postinitpath="/imagesinit/postinitscripts/"
elif [[ -f /imagesinit/dev/postinitscripts/fog.postinit ]]; then
postinitpath="/imagesinit/dev/postinitscripts/"
fi
. ${postinitpath}fog.postinit
fi
umount /imagesinit >/dev/null 2>&1
echo "Done"
debugPause
else
echo "Skipped"
debugPause
fi
if [[ -n $mode && $mode != +(*debug*) && -z $type ]]; then
case $mode in
wipe)
fog.wipe
@@ -38,9 +66,6 @@ if [[ -n $mode && $mode != +(*debug*) ]]; then
sysinfo)
fog.sysinfo
;;
"donate.full")
fog.donatefull
;;
*)
handleError "Fatal Error: Unknown mode :: $mode ($0)\n Args Passed: $*"
;;
@@ -1,18 +1,15 @@
#!/bin/bash
. /usr/share/fog/lib/funcs.sh
. /bin/fog.donate
clearScreen
displayBanner
disks=""
disk=""
hd=""
sysman=""
sysman64=""
sysproduct=""
sysproduct64=""
sysversion=""
sysversion64=""
sysserial=""
sysuuid=""
systype=""
biosversion=""
biosvendor=""
@@ -32,7 +29,11 @@ caseman=""
casever=""
caseserial=""
casesasset=""
sysman64=""
sysproduct64=""
sysversion64=""
sysserial64=""
sysuuid64=""
systype64=""
biosversion64=""
biosvendor64=""
@@ -57,11 +58,16 @@ getHardDisk
echo "$hd"
echo "Starting host registration"
mac=$(getMACAddresses | base64)
sysuuid=$(dmidecode -s system-uuid)
sysuuid=${sysuuid,,}
sysuuid=$(echo $sysuuid | base64)
dots "Attempting to register host"
count=0
res=""
productKey=""
productKey=$(tail -c+57 /sys/firmware/acpi/tables/MSDM | base64)
while [[ -z $res ]]; do
res=$(wget --post-data="mac=$mac" -qO - http://${web}service/auto.register.php 2>/dev/null)
res=$(curl -Lks --data "sysuuid=${sysuuid}&mac=$mac&productKey=${productKey}" ${web}service/auto.register.php 2>/dev/null)
case $count in
[0-8])
let count+=1
@@ -1,6 +1,5 @@
#!/bin/bash
. /usr/share/fog/lib/funcs.sh
. /bin/fog.donate
. /bin/fog.checkin
clearScreen
displayBanner
@@ -9,9 +8,16 @@ disk=""
hd=""
parts=""
part=""
sysuuid=$(dmidecode -s system-uuid)
sysuuid=${sysuuid,,}
dots "Mounting Clamav"
[[ ! -d /opt/fog/clamav ]] && mkdir -p /opt/fog/clamav >/dev/null 2>&1
mount -o nolock,proto=tcp,rsize=32768,wsize=32768,intr,noatime $clamav /opt/fog/clamav
mount -o nolock,proto=tcp,rsize=32768,wsize=32768,intr,noatime $clamav /opt/fog/clamav >/tmp/mount-output 2>&1
if [[ ! $? -eq 0 ]]; then
echo "Failed"
debugPause
handleError "Unable to mount location. ($0)\n Args Passed: $*\n Reason: $(cat /tmp/mount-output | tr -d \\0)"
fi
echo "Done"
debugPause
dots "Adding clamav to path"
@@ -80,11 +86,11 @@ for disk in $disks; do
case $fstype in
[Nn][Tt][Ff][Ss])
echo " * Mounting partition $part"
ntfs-3g -o remove_hiberfile,rw $part /clamavscan &> /tmp/clamavscan-mount-output
ntfs-3g -o remove_hiberfile,rw $part /clamavscan >/tmp/clamavscan-mount-output 2>&1
;;
[Ee][Xx][Tt][Ff][Ss])
echo " * Mounting partition $part"
mount -o rw $part /clamavscan &> /tmp/clamavscan-mount-output
mount -o rw $part /clamavscan >/tmp/clamavscan-mount-output 2>&1
;;
*)
dots "Not scanning partition"
@@ -93,15 +99,7 @@ for disk in $disks; do
continue
;;
esac
case $? in
0)
;;
*)
echo " * Failed to mount $part"
debugPause
continue
;;
esac
[[ ! $? -eq 0 ]] && handleError " * Could not mount partition ($0)\n Args Passed: $*\n Reason: $(cat /tmp/clamavscan-mount-output | tr -d \\0)"
debugPause
dots "Creating working directories"
mkdir -p /clamavscan/fog/{tmp,infected,log} >/dev/null 2>&1
@@ -160,7 +158,7 @@ for disk in $disks; do
;;
esac
debugPause
output=$(cat /clamavscan/fog/log/log.txt | grep 'FOUND')
output=$(cat /clamavscan/fog/log/log.txt | grep 'FOUND' | tr -d \\0)
oIFS=$IFS
IFS=$'\n'
cnt=0
@@ -169,7 +167,7 @@ for disk in $disks; do
let cnt+=1
echo " * File id: $cnt"
dots "Sending file id"
wget --post-data="mac=$mac&string=$b64&mode=$avmode" -qO - http://${web}service/av.php 2>/dev/null
curl -Lks --data "sysuuid=${sysuuid}&mac=$mac&string=$b64&mode=$avmode" ${web}service/av.php 2>/dev/null
case $? in
0)
echo "Done"
@@ -1,7 +1,6 @@
#!/bin/bash
. /usr/share/fog/lib/funcs.sh
. /bin/fog.donate
for arg in $(cat /proc/cmdline); do
for arg in $(cat /proc/cmdline | tr -d \\0); do
case $arg in
initsh)
ash -i
@@ -14,31 +13,18 @@ export capone=1
clearScreen
displayBanner
echo " * Starting Capone"
dots "Looking up DMI field"
count=0
dmi=""
while [[ -z $dmi ]]; do
dmi=$(wget --post-data="action=dmi" -qO - http://${web}service/capone.php 2>/dev/null)
if [[ $count -ge 10 ]]; then
echo "Failed"
debugPause
handleError "Could not find DMI Value ($0)\n Args Passed: $*"
fi
let count+=1
usleep 5000000
done
echo "Done"
debugPause
dots "Using Key Value:"
dmivalue=$(dmidecode -s $dmi)
echo "$dmivalue"
usleep 1000000
dmi64=$(echo $dmivalue | base64)
debugPause
dmi64=$(echo -n $dmivalue | base64)
dots "Looking for images"
count=0
img=""
while [[ -z $img ]]; do
img=$(wget --post-data="action=imagelookup&key=${dmi64}" -qO - http://${web}service/capone.php 2>/dev/null)
imgret=""
while [[ -z $imgret ]]; do
imgret=$(curl -Lks --data "action=imagelookup&key=${dmi64}" ${web}service/capone.php 2>/dev/null)
[[ -n $imgret ]] && continue
if [[ $count -ge 10 ]]; then
echo "Failed"
debugPause
@@ -49,19 +35,22 @@ while [[ -z $img ]]; do
done
echo "Done"
debugPause
oIFS=$IFS
IFS=$'\n'
cnt=0
linedecode=""
osname=""
mbrfile=""
defaultpart2start=""
for line in $img; do
img=""
osid=""
imgType=""
imgPartitionType=""
imgFormat=""
for line in $imgret; do
linedecode=$(echo $line | base64 -d)
[[ -z $linedecode ]] && handleError "No image definition was found for $dmivalue ($0)\n Args Passed: $*"
let cnt+=1
awk_returned_vars=$(echo $linedecode | awk -F"|" "{printf(\"%s\n%s\n%s\n%s\n%s\",\$1,\$2,\$3,\$4,\$5)}")
read img osid imgType imgPartitionType imgFormat <<< $awk_returned_vars
awk_returned_vars=$(echo $linedecode | awk -F'|' "{printf(\"%s %s %s %s %s %s %s\",\$1,\$2,\$3,\$4,\$5,\$6,\$7)}")
read img osid imgType imgPartitionType imgFormat storage storageip <<< $awk_returned_vars
determineOS "$osid"
echo -n " ID $cnt) "
echo -n " OS: $osname"
@@ -81,7 +70,6 @@ for line in $img; do
echo "Partclone"
;;
esac
usleep 1000000
done
case $cnt in
0)
@@ -96,27 +84,28 @@ case $cnt in
read imgchoice
done
cnt=0
for line in $img; do
for line in $imgret; do
linedecode=$(echo $line | base64 -d)
let cnt+=1
if [[ $cnt -eq $imgchoice ]]; then
awk_returned_vars=$(echo $linedecode | awk -F'|' '{printf("%s\n%s\n%s\n%s\n%s",$1,$2,$3,$4,$5)}')
read img osid imgType imgPartitionType imgFormat <<< $awk_returned_vars
awk_returned_vars=$(echo $linedecode | awk -F'|' "{printf(\"%s %s %s %s %s %s %s\",\$1,\$2,\$3,\$4,\$5,\$6,\$7)}")
read img osid imgType imgPartitionType imgFormat storage storageip <<< $awk_returned_vars
determineOS "$osid"
break
fi
done
;;
esac
IFS=$oIFS
dots "Setting up environment to deploy image"
echo " * Setting up environment to deploy image"
export type="down"
export mac="00:00:00:00:00:00"
export mac=$(getMACAddresses)
export img
export osid
export imgType
export imgPartitionType
export imgFormat
usleep 2000000
clearScreen
export storage
export storageip
debugPause
clear
fog
@@ -4,7 +4,7 @@ RUN_CHKDSK=""
HOSTNAME_EARLY=0
OS_ID_WIN7=5
OS_ID_WIN8=6
for arg in $(cat /proc/cmdline); do
for arg in $(cat /proc/cmdline | tr -d \\0); do
case $arg in
initsh)
ash -i
@@ -57,7 +57,7 @@ checkin() {
local res=""
local waittime=0
while [[ $res != "##@GO" ]]; do
res=$(wget --post-data="$poststring" -qO - http://${web}service/$php_post 2>/dev/null)
res=$(curl -Lks --data "$poststring" ${web}service/$php_post 2>/dev/null)
if [[ $res != "##@GO" ]]; then
echo "Failed"
debugPause
@@ -93,12 +93,14 @@ case $mc in
php_post="Pre_Stage1.php"
;;
esac
sysuuid=$(dmidecode -s system-uuid)
sysuuid=${sysuuid,,}
case $mode in
clamav)
poststring="mac=$mac&avmode=$avmode"
poststring="sysuuid=${sysuuid}&mac=$mac&avmode=$avmode"
;;
""|*)
poststring="mac=$mac&type=$type"
poststring="sysuuid=${sysuuid}&mac=$mac&type=$type"
;;
esac
[[ ! $capone -eq 1 ]] && checkin "$poststring" "$php_post"
@@ -1,9 +1,11 @@
#!/bin/bash
sysuuid=$(dmidecode -s system-uuid)
sysuuid=${sysuuid,,}
dots "Checking Mounted File System"
if [[ ! -f /images/.mntcheck ]]; then
count=0
while [[ $blame != '##' ]]; do
blame=$(wget --post-data="mac=$mac&type=$type" -qO - http://${web}service/blame.php 2>/dev/null)
blame=$(curl -Lks --data "sysuuid=${sysuuid}&mac=$mac&type=$type" ${web}service/blame.php 2>/dev/null)
case $count in
[0-8])
let count+=1
@@ -1,6 +1,5 @@
#!/bin/bash
. /usr/share/fog/lib/funcs.sh
. /bin/fog.donate
clearScreen
displayBanner
disks=""
@@ -18,7 +17,8 @@ getPartitions "$hd"
for part in $parts; do
while [[ $blCont -eq 0 && $blStop -eq 0 ]]; do
umount /ntfs 2>/dev/null >/dev/null
mount -o rw "$part" /ntfs
mount -o rw "$part" /ntfs >/tmp/mount-output 2>&1
[[ ! $? -eq 0 ]] && handleError " * Could not mount $part ($0)\n Args Passed: $*\n Reason: $(cat /tmp/mount-output | tr -d \\0)"
getSAMLoc
[[ -f $sam ]] && blCont=1 || blStop=1
done
@@ -28,8 +28,14 @@ for part in $parts; do
continue
fi
dots "Mounting Windows File System"
mount -o rw "$part" /ntfs
mount -o rw "$part" /ntfs >/tmp/mount-output 2>&1
if [[ ! $? -eq 0 ]]; then
echo "Failed"
debugPause
handleError " * Could not mount $part ($0)\n Args Passed: $*\n Reason: $(cat /tmp/mount-output | tr -d \\0)"
fi
echo "Done"
debugPause
dots "Attempting to change password"
chntpw -u "$winuser" "$sam" >/dev/null 2>&1 </usr/share/fog/lib/EOFCHNTPW
if [[ ! $? -eq 0 ]]; then
@@ -1,6 +1,5 @@
#!/bin/bash
. /usr/share/fog/lib/funcs.sh
. /bin/fog.donate
clearScreen
displayBanner
disks=""
@@ -34,12 +33,8 @@ for part in $parts; do
case $fstype in
[Nn][Tt][Ff][Ss])
echo " * Mounting partition $part"
ntfs-3g -o remove_hiberfile,rw "$part" /chntpw >/dev/null 2>&1
if [[ ! $? -eq 0 ]]; then
echo " * Failed to mount $part"
debugPause
continue
fi
ntfs-3g -o remove_hiberfile,rw "$part" /chntpw >/tmp/ntfs-mount-output 2>&1
[[ ! $? -eq 0 ]] && handleError " * Could not mount $part ($0)\n Args Passed: $*\n Reason: $(cat /tmp/ntfs-mount-output | tr -d \\0)"
if [[ ! -f $sam ]]; then
echo " * Unable to locate SAM file"
debugPause
@@ -1,6 +1,5 @@
#!/bin/bash
. /usr/share/fog/lib/funcs.sh
. /bin/fog.donate
clearScreen
displayBanner
echo " You have entered into FOG debug"

0 comments on commit 1ffca08

Please sign in to comment.
You can’t perform that action at this time.