util-linux-ng: swapoff is symlink to swapon
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Tue, 30 Mar 2010 12:05:35 +0000 (14:05 +0200)
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Tue, 30 Mar 2010 12:09:26 +0000 (14:09 +0200)
Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
recipes/util-linux-ng/util-linux-ng.inc

index 7c6c8e9..20fe25f 100644 (file)
@@ -8,7 +8,7 @@ inherit autotools
 
 DEFAULT_PREFERENCE = "-1"
 
-INC_PR = "r17"
+INC_PR = "r18"
 
 # allows for a release candidate
 RC ?= ""
@@ -257,12 +257,12 @@ pkg_prerm_util-linux-ng-losetup () {
 }
 
 pkg_postinst_util-linux-ng-swaponoff () {
-       update-alternatives --install ${base_sbindir}/swapoff swapoff swapoff.${PN} 100
+       update-alternatives --install ${base_sbindir}/swapoff swapoff swapon.${PN} 100
        update-alternatives --install ${base_sbindir}/swapon swapon swapon.${PN} 100
 }
 
 pkg_prerm_util-linux-ng-swaponoff () {
-       update-alternatives --remove swapoff swapoff.${PN}
+       update-alternatives --remove swapoff swapon.${PN}
        update-alternatives --remove swapon swapon.${PN}
 }