I'm making a single combined tcz for hostapd, dnsmasq and the deps. I'm (seemingly) not having any issues making the tcz itself but hostapd is giving me a "not enough entropy" error when starting it.
Based on this post:
http://forum.tinycorelinux.net/index.php/topic,16181.msg96091.html#msg96091I did this which fixed it (ignoring any discussion on which is more cryptographically secure):
mv /dev/random /dev/random_old
ln -s /dev/urandom /dev/random
So I wanted to make the changes to the device files happen as part of the tcz install. I tried:
- making the /usr/local/tce.installed script (same name as package without extension) with the above commands but it doesn't do anything. Doesn't throw any errors during tce-load but the device files are not changed. I can then manually run the script after the tcz is loaded and it works just fine. Permissions were root.staff 755 with +x on the file. I made another combined tcz for wifi which has a script that does run correctly though it's not trying to make any changes to /dev so I think I'm building the package and setting file permissions correctly.
- next I tried just copying the device files into the tcz package itself thinking they would just replace the originals when the package was loaded. That didn't work either.
- I also tried the -f option of tce-load for "Overwrite system files" which sounded promising but had no affect for either the script version of the package or the version with no script but device files added to the package.
I guess I can put the commands in one of the system startup scripts like bootsync.sh or bootlocal.sh but I thought it would be a little cleaner to just have it taken care of when you install the package.
What am I missing?