Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
5c3d6960
提交
5c3d6960
authored
3月 14, 2016
作者:
Ken Rice
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-8933 WIP a few more edits to make Raspbian work
上级
2cc3ecd7
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
20 行增加
和
5 行删除
+20
-5
dialog-installer.sh
scripts/dialog-installer.sh
+20
-5
没有找到文件。
scripts/dialog-installer.sh
浏览文件 @
5c3d6960
...
@@ -17,7 +17,18 @@ install_prereqs() {
...
@@ -17,7 +17,18 @@ install_prereqs() {
#install the prereqs
#install the prereqs
echo
"Making sure we have the prereqs for this script to run. Please Stand by..."
echo
"Making sure we have the prereqs for this script to run. Please Stand by..."
apt-get update 2>&1
>
/dev/null
apt-get update 2>&1
>
/dev/null
apt-get
install
-y
curl dialog git 2>&1
>
/dev/null
apt-get
install
-y
curl dialog git ntpdate 2>&1
>
/dev/null
# See if ntpd is running if it is, stop it set the current time as rpi has no RTC and this is needed
# for SSL to function properly
if
pgrep
"ntpd"
>
/dev/null
;
then
/etc/init.d/ntp stop
ntpdate pool.ntp.org
/etc/init.d/ntp start
else
ntpdate pool.ntp.org
fi
}
}
welcome_screen
()
{
welcome_screen
()
{
...
@@ -132,13 +143,14 @@ config_fs_repos() {
...
@@ -132,13 +143,14 @@ config_fs_repos() {
}
}
get_fs_source
()
{
get_fs_source
()
{
echo
"REPO =
$REPO
"
if
[
!
-d
/usr/src/freeswitch.git
]
;
then
if
[
!
-d
/usr/src/freeswitch.git
]
;
then
cd
/usr/src
cd
/usr/src
git clone
$REPO
freeswitch.git
git clone
$REPO
freeswitch.git
else
else
cd
/usr/src/freeswitch.git
cd
/usr/src/freeswitch.git
git clean
-fdx
git clean
-fdx
git reset
-hard
origin/
$FS_REV
git reset
-
-
hard
origin/
$FS_REV
git pull
git pull
fi
fi
}
}
...
@@ -192,7 +204,9 @@ build_fs() {
...
@@ -192,7 +204,9 @@ build_fs() {
rm
-rf
/usr/local/freeswitch/
{
bin,mod,lib
}
/
*
rm
-rf
/usr/local/freeswitch/
{
bin,mod,lib
}
/
*
fi
fi
cd
/usr/src/freeswitch.git
cd
/usr/src/freeswitch.git
./bootstrap.sh
-j
if
[
!
-d
/usr/src/freeswitch.git/configure
]
;
then
./bootstrap.sh
-j
fi
./configure
-C
./configure
-C
make
-j
$JLIMIT
install
make
-j
$JLIMIT
install
make uhd-sounds-install
make uhd-sounds-install
...
@@ -238,6 +252,7 @@ freeswitch_raspbian_source() {
...
@@ -238,6 +252,7 @@ freeswitch_raspbian_source() {
libtiff5-dev libperl-dev libgdbm-dev libdb-dev gettext libssl-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev
\
libtiff5-dev libperl-dev libgdbm-dev libdb-dev gettext libssl-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev
\
libspeexdsp-dev libsqlite3-dev libedit-dev libldns-dev libpq-dev libsndfile-dev libopus-dev liblua5.1-0-dev 2>&1 |
\
libspeexdsp-dev libsqlite3-dev libedit-dev libldns-dev libpq-dev libsndfile-dev libopus-dev liblua5.1-0-dev 2>&1 |
\
awk
-W
interactive
'/Progress/ { print }'
|
sed
-u
's/[^0-9]//g'
| dialog
--gauge
"Please wait.
\n
Installing Build Requirements..."
10 70 0
awk
-W
interactive
'/Progress/ { print }'
|
sed
-u
's/[^0-9]//g'
| dialog
--gauge
"Please wait.
\n
Installing Build Requirements..."
10 70 0
build_fs
}
}
...
@@ -245,13 +260,13 @@ freeswitch_raspbian_source() {
...
@@ -245,13 +260,13 @@ freeswitch_raspbian_source() {
welcome_screen
welcome_screen
fs_ver_select
fs_ver_select
get_network_settings
get_network_settings
config_fs_repos
if
[
"
$ID
"
=
"debian"
]
;
then
if
[
"
$ID
"
=
"debian"
]
;
then
config_fs_repos
freeswitch_debian_source
freeswitch_debian_source
elif
[
"
$ID
"
=
"raspbian"
]
;
then
elif
[
"
$ID
"
=
"raspbian"
]
;
then
#freeswitch_raspbiani123
JLIMIT
=
"3"
JLIMIT
=
"3"
freeswitch_raspbian_source
fi
fi
install_vc
install_vc
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论