From: munkyu.im Date: Fri, 11 Jan 2013 08:03:07 +0000 (+0900) Subject: package: fix install script X-Git-Tag: TizenStudio_2.0_p2.3~1063 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45d7b1dc821dcdfb85e8a04e5bf664bb68c810a7;p=sdk%2Femulator%2Fqemu.git package: fix install script make tmp file if it does not exist Signed-off-by: munkyu.im --- diff --git a/package/emulator-qemu-common.install.macos-64 b/package/emulator-qemu-common.install.macos-64 index aa13742..c63d1ba 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