0

I want to use this command every boot

>/etc/udev/rules.d/70-persistent-net.rules 

so I wrote it in /etc/rc.local but it didn't help , is ">" a problem ?

my purpose is to clear /etc/udev/rules.d/70-persistent-net.rules

thank you very much

1
  • Why would you NEED to clear a file in /etc on EVERY boot anyway?
    – Tom Yan
    Mar 4 '16 at 7:19
0

Have you tried alternatives, like cat /dev/null > /etc/...? Or added logging statements so that you can be sure the script is running?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.