Why forking
I'm working with older images from a1d3s. It's necessary because newer kernels have a problem with my tvheadend installation. The "continous errors" will increase with newer kernel abnormal.
Scripts
Scripts for Debian Image
Copy both files into /usr/sbin/ chmod +x /usr/sbin/config chmod +x /usr/sbin/resize
then run config