On Wed Oct 22 00:00, gregor herrmann wrote: > On Tue, 21 Oct 2008 22:45:56 +0100, Matthew Johnson wrote: > > > hi, is there any reason not to just make running makedev conditional on > > udev not being active? This is the normal solution. > > Just that I'm not sure how to detect if udev is active or not :) > > > I was going to offer to NMU, but you seem to be handling the issue. Let > > me know if you'd rather I applied the above patch. > > Thanks for the offer. If you could make a suggestion for the change > that would be much appreciated.
How about the attached patch? -- Matthew Johnson
--- debian/postinst.orig 2008-10-21 22:06:02.000000000 +0000 +++ debian/postinst 2008-10-21 22:09:48.000000000 +0000 @@ -23,8 +23,10 @@ case "$1" in configure) # we need a tun device - echo "Creating device /dev/net/tun ..." - cd /dev && ./MAKEDEV tun + if [ ! -e /dev/.udev ]; then + echo "Creating device /dev/net/tun ..." + cd /dev && ./MAKEDEV tun + fi # and we want a special user adduser --quiet --system --home /var/run/iodine iodine # generate /etc/default/iodine
signature.asc
Description: Digital signature