Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

You must log in to answer this question.

Browse other questions tagged .