deepin之inode

/ 默认分类 / 没有评论 / 137浏览

用作个人记录

安装H3C Inode vpn 客户端 for deepin

deepin 15.11

#!/bin/bash

filepath=$(cd "$(dirname "$0")"; pwd)
echo "当前路径:$filepath"

echo "欢迎使用H3C INode智能客户端 for linux 64 工具。"
echo "请使用sudo 命令 使用本脚本 。本脚本可安装、卸载inode客户端,详细命令如下:"
echo "inst1 初次安装; inst2非初次安装; uninst 卸载"

insrely(){
    echo "安装依赖......"
    sudo dpkg -i ./lib/libpng12-0_1.2.54-1ubuntu1_amd64.deb
    sudo apt-get install libncurses5
    sudo cp l./lib/ibpng12.so.0  /usr/lib/x86_64-linux-gnu/
}

insinode(){
    echo "开始安装"
    tar -zxf inodeclientLinux647.3E0538.tar.gz
    cd iNodeClient
    sudo ./install_64.sh
    echo "安装完成,请运行 $filepath 下 iNodeClient 文件夹内 iNodeClient"
}


read comm 

if [ "$comm" = "inst1" ];
then
    insrely
    insinode
elif [ "$comm" = "inst2" ]
then
    insinode
    sudo ./iNodeClient.sh
elif [ "$comm" = "uninst" ]
then
    cd iNodeClient
    sudo ./uninstall.sh
    cd ../
    rm -rf iNodeClient
    echo "卸载完成。"
else
	echo "没有符合的条件。"
fi

http://img.zjlgd.cn/inodeclientfordeepin.tar.gz