I added the following content in /etc/init.d/reboot
script:
FILE="/etc/udev/rules.d/70-persistent-net.rules"
rm $FILE
This did not work, since it complained when I restarted the system:
rm: cannot remove `/etc/udev/rules.d/70-persistent-net.rules': Read-only file system
I suggest you use /etc/rc.local for your customization of reboot process.
Among the hooks can be used to include custom code in various places in the rc.* init scripts: shutdown_start At the beginning of rc.shutdown
If it says Read-only file system, you don't have sufficient permission to remove the file.
By the way, explain your main objective, maybe folks can help you with a better approach.
I think you need to do the file writable. To do this use the following command: