From 45d7b1dc821dcdfb85e8a04e5bf664bb68c810a7 Mon Sep 17 00:00:00 2001 From: "munkyu.im" Date: Fri, 11 Jan 2013 17:03:07 +0900 Subject: [PATCH] package: fix install script make tmp file if it does not exist Signed-off-by: munkyu.im --- package/emulator-qemu-common.install.macos-64 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/emulator-qemu-common.install.macos-64 b/package/emulator-qemu-common.install.macos-64 index aa137426e5..c63d1ba13e 100755 --- a/package/emulator-qemu-common.install.macos-64 +++ b/package/emulator-qemu-common.install.macos-64 @@ -55,18 +55,18 @@ then if [ -e /etc/$SYSCTL_FILE ] then remove_tmp_file; + makesysctl; echo "mv -f /etc/sysctl.conf /etc/sysctl.conf.old" >> $TMP_FILE echo "cp -f $TMP_DIR/$SYSCTL_FILE /etc/." >> $TMP_FILE echo "sysctl -w kern.sysv.shmmax=$NEW_SHMMAXSIZE" >> $TMP_FILE chmod +x $TMP_FILE - makesysctl; $TIZEN_BIN_PATH/cocoasudo "--prompt=Changing /etc/sysctl.conf file requires that you type your password.(The original file will be removed to sysctl.conf.old)" sh -x $TMP_FILE else remove_tmp_file; + makesysctl; echo "cp -f $TMP_DIR/$SYSCTL_FILE /etc/." >> $TMP_FILE echo "sysctl -w kern.sysv.shmmax=$NEW_SHMMAXSIZE" >> $TMP_FILE chmod +x $TMP_FILE - makesysctl; $TIZEN_BIN_PATH/cocoasudo "--prompt=Make a new /etc/sysctl.conf file requires that you type your password." sh -x $TMP_FILE fi fi -- 2.34.1