5 if [ "$1" = install -o "$1" = upgrade ]; then
6 dpkg-divert --quiet --package ocsinventory-agent-cn --rename \
7 --divert /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Hostname.pm.divert \
8 /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Hostname.pm
9 dpkg-divert --quiet --package ocsinventory-agent-cn --rename \
10 --divert /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm.divert \
11 /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm