How to make a process run at startup

I also have a function (part of a larger script) which makes any foreign init script LSB compliant. I haven’t used it yet on 11.4 as all scripts looked fine. I don’t need to explain it to you, as I know you are good.

function lsb {

for iscript in `find /etc/init.d -maxdepth 1 -type f -executable ! -name "*.local" ! -name "*.orig"` ; do
	 -f ${iscript}.orig ] && continue
	grep -q '### BEGIN INIT INFO' $iscript && continue
	case $(basename $iscript) in
		single|halt|powerfail|rc|boot) continue ;;
		*)
		cp $iscript{,.orig}
		echo "- making $iscript LSB compliant" 
		s=$(basename $iscript)
		sed -n '1,/^^# ]/p' $iscript.orig | sed '$d' > $iscript
		cat >> $iscript << EOFLSB
# LSB compliant service control script
#
### BEGIN INIT INFO
# Provides:			$s
# Required-Start:		\$remote_fs \$all
# Should-Start:			
# Required-Stop:		
# Should-Stop:			
# Default-Start:		3 5
# Default-Stop:			0 1 2 6
# Short-Description:		$s
# Description:			Starts and stops $s
### END INIT INFO

EOFLSB
		sed -n '/^^# ]/,$p' $iscript.orig >> $iscript
		;;
	esac
done
}

IMHO This thread belongs to the development forum.