diff options
author | Eric Hameleers <alien@slackware.com> | 2011-03-29 10:42:54 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2011-03-29 10:42:54 +0000 |
commit | 7177f57e8664cba49be8d09ff0f1b4b82112e36e (patch) | |
tree | ee7d6f90b722145b3c78b6843eeddb125b1e7d49 /qemu-kvm/build/qemu-kvm.SlackBuild | |
parent | ee7487be2a9afabca4b862d01c13a7fc60910a15 (diff) | |
download | asb-7177f57e8664cba49be8d09ff0f1b4b82112e36e.tar.gz asb-7177f57e8664cba49be8d09ff0f1b4b82112e36e.tar.xz |
Fix the post-installation
Diffstat (limited to 'qemu-kvm/build/qemu-kvm.SlackBuild')
-rwxr-xr-x | qemu-kvm/build/qemu-kvm.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/qemu-kvm/build/qemu-kvm.SlackBuild b/qemu-kvm/build/qemu-kvm.SlackBuild index c6058273..b0241b49 100755 --- a/qemu-kvm/build/qemu-kvm.SlackBuild +++ b/qemu-kvm/build/qemu-kvm.SlackBuild @@ -200,16 +200,21 @@ config2() { elif [ "\`cat \$OLD | md5sum\`" = "\`cat \$NEW | md5sum\`" ]; then # toss the redundant copy rm \$NEW + else + # Otherwise, move the existing file to an .orig extension, + # and let the new file take its place: + mv \$OLD \$OLD.orig + mv \$NEW \$OLD fi - # Otherwise, move the existing file to an .orig extension and let the new - # file take its place: - mv \$OLD \$OLD.orig - mv \$NEW \$OLD done } config2 etc/qemu/target-x86_64.conf.new +# We installed a UDEV rule, so let's reload the ruleset: +if [ -x etc/rc.d/rc.udev reload ]; then + chroot . /etc/rc.d/rc.udev reload +fi EOINS # Add a udev rules file so that members of the 'kvm' group can use the KVM: |