I have added something similar to my tasks.advanced.include.php file and it works like a charm, my code is near on the same.
Posts made by Terry Bates
RE: Global Snap-in Deployment
Please read your related post in the Technical help section.
RE: Doing magic with Fog - But simplest things stumping me
I added the following to /var/www/fog/management/includes/tasks.advanced.include.php around line 165, i’m using FOG 0.32, seems to work a treat, not sure why its not included in the standard build.
<td class=“c”><a href="?node=tasks&type=group&direction=onesnap&noconfirm=<?php print $groupid; ?>"><img src="./images/snap.png" /><p><?php print _(‘Deploy Single Snapin’); ?></p></a></td>
<td><p><?php print _(‘This option allows you to send a single snapin to a Group. (Requires FOG Service to be installed on client)’); ?></p></td>
Would love to know how you have added extra info to the database I would like to add a location to the hosts section so I know where my computers are, have requested the feature maybe you can help [url]http://fogproject.org/forum/threads/location-information-for-each-host.913/[/url]
Location information for each host.
This is a pretty simple feature I would like to request.
Is it possible to add a location field into the General section for a host.
Would also be nice if it showed when all hosts were listed.
I know you are rewriting the web interface at the moment so I thought I better get in quick.
RE: Where does surface check report to?
Is it possible to turn this into a feature request/improvement?
It would be nice if the results of the disk surface test were dumped into a nicely named text file on the FOG server.
Even better features would be.
- Results displayed in reports section.
- Change the status of computers that have failed the test.
- Options to change the surface scan parameters.
- Email alerts.
But hey I would be happy with the text output, I don’t really want to sit in front of computers waiting for the scan to finish.
P.S. Thanks Robin Commander I will be looking into your method in the mean time.
RE: Adding drivers at the end of an restore.
Had some time today, added this to my fog script
[CODE] if [ “$type” == “down” ];
# Windows XP
if [ “$osid” == “1” ]; then
echo " * Copying driver files";
ntfs-3g -o force,rw $part /ntfs
mkdir -p /ntfs/sysprep/drivers
cp -R -f /images/drivers/* /ntfs/sysprep/drivers
It seems to work well, will probably expand on this in the future, might even send through page for your wiki with what I’m doing for deploying images.
Adding drivers at the end of an restore.
I have to say this is the third time I have used this project for deployment situations and its fantastic.
I have an odd request, I would like to add a custom some script to copy driver files from a directory on my fog server to my xp image once its restored to the machine.
I understand that you can mount the init.gz image and modify it, I am thinking that adding a bit of code to the “fog” script in /bin will do but at what point should I add this? for the most part my images are single partition.
Also any suggestions on what I should write as well would be great I can write a vb script file but first time with bash script, basically would like to copy a folder full of drivers say /mnt/drivers to ~c:\sysprep\drivers, anything basic will do I’m sure I can modify it to suit
There may even be an easier way of doing this but I dont know it