diff options
| author | Roy Marples <roy@marples.name> | 2020-04-05 16:50:59 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-04-05 16:50:59 +0100 |
| commit | da3c5c400a677a45b8a8af9d28d2c5af7c46063f (patch) | |
| tree | 1b6ac0cc30b226768353ed51b2673ce70a22a9d8 /src | |
| parent | d3713add356c48b772751cf2684d9a705a5e6521 (diff) | |
| download | dhcpcd-da3c5c400a677a45b8a8af9d28d2c5af7c46063f.tar.xz | |
install: Dont move old files around to new locations
privsep user dir may not exist and this code wont work for
dhcpcd-9 anyway.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/Makefile b/src/Makefile index 4853fd81..28fb6e35 100644 --- a/src/Makefile +++ b/src/Makefile @@ -97,32 +97,6 @@ _confinstall: # Install a new default config if not present test -e ${DESTDIR}${SYSCONFDIR}/dhcpcd.conf || \ ${INSTALL} -m ${CONFMODE} dhcpcd.conf ${DESTDIR}${SYSCONFDIR} - # Attempt to move files from sysconfig to dbdir - if [ ! -e ${DESTDIR}${DBDIR}/duid -a \ - -e ${DESTDIR}${SYSCONFDIR}/dhcpcd.duid ]; \ - then \ - mv ${DESTDIR}${SYSCONFDIR}/dhcpcd.duid \ - ${DESTDIR}${DBDIR}/duid; \ - fi - if [ ! -e ${DESTDIR}${DBDIR}/secret -a \ - -e ${DESTDIR}${SYSCONFDIR}/dhcpcd.secret ]; \ - then \ - mv ${DESTDIR}${SYSCONFDIR}/dhcpcd.secret \ - ${DESTDIR}${DBDIR}/secret; \ - fi - # Move leases to new location - for lease in ${DESTDIR}${DBDIR}/../dhcpcd-*.lease*; do \ - [ -f "$$lease" ] || continue; \ - newlease=$$(basename "$$lease" | ${SED} -e "s/dhcpcd-//"); \ - mv "$$lease" ${DESTDIR}${DBDIR}/"$$newlease"; \ - done - # Move RDM monotonic to new location - if [ ! -e ${DESTDIR}${DBDIR}/rdm_monotonic -a \ - -e ${DESTDIR}${DBDIR}/../dhcpcd-rdm.monotonic ]; \ - then \ - mv ${DESTDIR}${DBDIR}/../dhcpcd-rdm.monotonic \ - ${DESTDIR}${DBDIR}/rdm_monotonic; \ - fi eginstall: |
