I was trying to get a VPN working for my university, and accidentally
did an rm on /etc/ppp/ip-down, instead of ip-down.local.
If anyone has ppp 2.4.5 on their machine, and wouldn’t mind posting me
a copy of their script (I hadn’t modified the ip-down at all), I would
be most appreciative.
If it makes a difference for these files, I am on 11.1 KDE 4.2.
If you find that you have deleted one file from a package which you have
not modified from the original, there is a way to extract just that file
from the RPM package. You need to be comfortable with CLI and RPM files
for this. I won’t describe some maneuvers in detail.
First find which package owns the file:
Code:
$ rpm -qf /etc/ppp/ip-down
sysconfig-0.71.11-7.2
Turns out it’s in sysconfig.
Next, get hold of the RPM one way or another. If it’s on the DVD you
need to mount the DVD. If you have the ISO image, you can loop mount it.
Otherwise you can fetch it from the repo with your web browser. Then run
rpm2cpio to convert the RPM to a CPIO image and you can view its
contents like this: