ubuntu爆内存的问题

来源:互联网 发布:天天模拟器官网mac版 编辑:程序博客网 时间:2024/06/05 03:32
#!/bin/bash# Copyright (c) 2015 Deepin Ltd. All rights reserved.# Use of this source is governed by General Public Licenseset -eBIN_PATH='/usr/bin/netease-cloud-music'rm_old_sym_link() {  rm $BIN_PATH}add_new_exec_file() {  cat > $BIN_PATH << EOF#!/bin/bashcd /usr/lib/netease-cloud-music/usr/lib/netease-cloud-music/netease-cloud-music $*EOFchown root:root $BIN_PATHchmod 0755 $BIN_PATH}installed_ok() {  echo 'This patch has be installed to system correctly!'}installed_err() {  echo 'Failed to install this patch, please feedback at'  echo 'https://bbs.deepin.org/forum.php?mod=viewthread&tid=39708&extra='}main() {  rm_old_sym_link && add_new_exec_file && installed_ok && exit 0  installed_err  exit 1}main

以上文件保存为:fix-netease-cloud-music-v0.9.0-mem-leak.sh

sudo bash ./fix-netease-cloud-music-v0.9.0-mem-leak.sh