Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a custom Linux system using Debian Wheezy ARM HF. The Ethernet on our board is buggy, and to get it to work I had to patch in two sets of 'ifconfig eth0 down' and 'ifconfig eth0 up' commands into /etc/init.d/networking.

Our standard procedure is to encapsulate system specific changes into custom .deb. files. So I created a custom .deb file containing, amongst other things, the modified /etc/init.d/networking file.

The problem is that /etc/init.d/networking is already owned by ifupdown_0.7.8_armhf.deb, so installing my custom deb file requires me to force an overwrite. Additionally once this is done doing an "apt-get upgrade" will fail if the ifupdown package ever needs to be upgraded.

Can anyone recommend a better way of working in my patch, and allowing future upgrades to work without overwriting the custom change?

share|improve this question
    
Script an edit? Have the package install the file somewhere else, then use a post-install script replace the main file? –  Zoredache Nov 14 '13 at 17:54
    

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.