#------------------------------------------------------------
# mvpmc dhcp, tftp boot Entries
#------------------------------------------------------------
group {
next-server 10.6.18.2; # IP address of your TFTP server
host mvp.rollocos.com {
hardware ethernet 00:00:00:00:00:00; # MAC address of your MediaMVP
fixed-address 10.6.18.25; # IP address you want to assign the MediaMVP
filename "dongle.bin.mvpmc"; # arbitrary, but must match filename in /tftboot
option root-path "/home/mvp,rsize=4096,wsize=4096,nolock";
}
}
What stuntshell is saying is that this WILL be generated (except the option root-path "/home/mvp,rsize=4096,wsize=4096,nolock"; line) by smeserver-thinclient if you create an 'Individually Controlled Workstation' with (you shouldn't need the fully qualified name):
*Name = mvp
*mac address = 00:00:00:00:00:00
*Distribution = mvpmc
*Status = enabled
and a Distribution with:
*Distribution = mvpmc
*Base Directory = /tftproot/mvpmc
*Executable = dongle.bin.mvpmc
*Type = Manual
and put all your bits and peices in /tftproot/mvpmc
You could make a copy of /etc/e-smith/templates/etc/dhcpd.conf/40PXEClients in /etc/e-smith/templates-custom/etc/dhcpd.conf and alter to your requirements.
This is for an appliance (set top box) that uses the tftp server to boot. Once I managed to get the changes written and the device worked great. Then I started trying to figure out the correct way to make the changes persist across restarts.
You could just create a fragment (/etc/e-smith/templates-custom/etc/dhcpd.conf/41mvp) that just copies out those lines.
I noticed the dhcpd service automatically restarts itself when I stop it via the command line. Also, the /etc/dhcpd.conf file gets re-written when this happens (as the text of that file clearly warns).
dhcpd is a 'supervised' process and will be restarted automagically (regenerating /etc/dhcpd.conf file as part of it's startup) unless you do a
config setprop dhcpd status disabled
I tried changing the file: /etc/e-smith/templates/etc/dhcpd.conf/60StaticEntries to include the settings above, but that didn't result in an altered /etc/dhcpd.conf.
I also tried creating a new file (/etc/e-smith/templates/etc/dhcpd.conf/65MVPMCEntries) to try and add the settings.
You should ALWAYS make a copy of the original template in templates-custom (any update CAN/WILL overwrite /etc/e-smith/templates).
Hmmm... Well then you have a mistake or potentially the dhcpd.conf was regened & then overwritten. When playing, stop dhcpd (config setprop dhcpd status disabled & /etc/init.d/dhcpd stop). Do your changes and then run
expand-template /etc/dhcpd.conf
and look at the results
Could someone point me to an existing sme script that I could alter OR some other way to get this working?
smeserver-thinclient does just that.
If you run mc you can look into any rpm and see the files used (everything installed on your smeserver should be in the yum cache /var/cache/yum). smeserver-thinclient will be in the smedev cache directory.
In the case of smeserver-thinclient the fragments are
*28NextServer
*28PXEFilename
*40PXEClients
Good Luck
Trevor B