diff options
author | 2020-02-07 19:33:21 -0300 | |
---|---|---|
committer | 2020-02-08 20:13:07 +0100 | |
commit | ffb189ed5a96576f2df2ef4c4b181ccee5fec657 (patch) | |
tree | a13c639de739bc1deb1971a96fa8c605237b2841 /system | |
parent | 03a8884c469b96fa85042cd551774f98491687c7 (diff) | |
download | buildroot-ffb189ed5a96576f2df2ef4c4b181ccee5fec657.tar.gz buildroot-ffb189ed5a96576f2df2ef4c4b181ccee5fec657.tar.bz2 |
Revert "system: don't attempt swapon/swapoff in inittab if not available"
This reverts commit c4dce0ae0f5d5d7fecb6f493e974e131a6df43da.
A different fix will be provided in a forthcoming patch.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'system')
-rw-r--r-- | system/system.mk | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/system/system.mk b/system/system.mk index 6f1f5c27b1..8fe2c138b0 100644 --- a/system/system.mk +++ b/system/system.mk @@ -96,19 +96,6 @@ define SYSTEM_REMOUNT_ROOT_INITTAB endef endif -define SYSTEM_UPDATE_SWAPON_SWAPOFF_INITTAB - if [ -x $(TARGET_DIR)/sbin/swapon ]; then \ - $(SED) '\%:/sbin/swapon%s/^#*//' $(TARGET_DIR)/etc/inittab ; \ - else \ - $(SED) '\%:/sbin/swapon%s/^#*/#/' $(TARGET_DIR)/etc/inittab ; \ - fi - if [ -x $(TARGET_DIR)/sbin/swapoff ]; then \ - $(SED) '\%:/sbin/swapoff%s/^#*//' $(TARGET_DIR)/etc/inittab ; \ - else \ - $(SED) '\%:/sbin/swapoff%s/^#*/#/' $(TARGET_DIR)/etc/inittab ; \ - fi -endef - ifeq ($(BR_BUILDING)$(BR2_SYSTEM_DEFAULT_PATH),y"") $(error BR2_SYSTEM_DEFAULT_PATH can't be empty) endif |