From 3a62690eddebc6e0ca1b243ee5b285d655d75dc2 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Mon, 25 Apr 2016 21:35:12 +0900 Subject: [PATCH] Fix dependencies --- l2tp.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/l2tp.sh b/l2tp.sh index 3fd0664..ab0a774 100644 --- a/l2tp.sh +++ b/l2tp.sh @@ -267,6 +267,7 @@ install_l2tp(){ local libnss3_filename4="libnss3-dev_3.17.2-1.1_i386.deb" local libnss3_filename5="libnss3-dbg_3.17.2-1.1_i386.deb" fi + [ ! -d ${cur_dir}/l2tp ] && mkdir -p ${cur_dir}/l2tp && cd ${cur_dir}/l2tp download_file "${libnspr4_filename1}" download_file "${libnspr4_filename2}" download_file "${libnspr4_filename3}" @@ -278,9 +279,9 @@ install_l2tp(){ download_file "${libnss3_filename5}" dpkg -i ${libnspr4_filename1} ${libnspr4_filename2} ${libnspr4_filename3} ${libnspr4_filename4} dpkg -i ${libnss3_filename1} ${libnss3_filename2} ${libnss3_filename3} ${libnss3_filename4} ${libnss3_filename5} - apt-get -y install gcc ppp flex bison make pkg-config libpam0g-dev libcap-ng-dev libcap-ng-utils libunbound-dev libevent-dev libcurl4-nss-dev + apt-get -y install wget gcc ppp flex bison make pkg-config libpam0g-dev libcap-ng-dev libcap-ng-utils libunbound-dev libevent-dev libcurl4-nss-dev else - apt-get -y install gcc ppp flex bison make python libnss3-dev libnspr4-dev pkg-config libpam0g-dev libcap-ng-dev libcap-ng-utils libunbound-dev libnss3-tools libevent-dev libcurl4-nss-dev + apt-get -y install wget gcc ppp flex bison make python libnss3-dev libnspr4-dev pkg-config libpam0g-dev libcap-ng-dev libcap-ng-utils libunbound-dev libnss3-tools libevent-dev libcurl4-nss-dev fi apt-get -y --no-install-recommends install xmlto apt-get -y install xl2tpd