mirror of
https://gitlab.com/padavan-ng/padavan-ng.git
synced 2024-02-13 08:33:30 +08:00
firmware: sync with rt-n56u project
This commit is contained in:
18
Dockerfile
18
Dockerfile
@ -1,9 +1,16 @@
|
||||
FROM ubuntu:trusty
|
||||
FROM ubuntu:xenial
|
||||
|
||||
MAINTAINER Andy Voigt <voigt-andy@hotmail.de>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
RUN apt-get update && apt-get install -qy apt-utils
|
||||
RUN apt-get -qy install locales
|
||||
RUN locale-gen --no-purge en_US.UTF-8
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
||||
|
||||
RUN apt-get install -qy \
|
||||
git \
|
||||
build-essential \
|
||||
gawk \
|
||||
@ -11,6 +18,7 @@ RUN apt-get update && apt-get install -y \
|
||||
gettext \
|
||||
automake \
|
||||
autoconf \
|
||||
autopoint \
|
||||
libtool \
|
||||
bison \
|
||||
flex \
|
||||
@ -22,7 +30,11 @@ RUN apt-get update && apt-get install -y \
|
||||
mc \
|
||||
libncurses5-dev \
|
||||
nano \
|
||||
vim
|
||||
vim \
|
||||
autopoint \
|
||||
gperf \
|
||||
python-docutils
|
||||
|
||||
|
||||
RUN git clone https://bitbucket.org/padavan/rt-n56u.git /opt/rt-n56u
|
||||
|
||||
|
@ -11,21 +11,6 @@ fi
|
||||
export PATH=/opt/sbin:/opt/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
INSTALLER=/tmp/entware_installer.sh
|
||||
|
||||
dl () {
|
||||
# $1 - URL to download
|
||||
# $2 - place to store
|
||||
# $3 - 'x' if should be executable
|
||||
logger -t "${self_name}" "Downloading $2..."
|
||||
wget -q $1 -O $2
|
||||
if [ $? -eq 0 ] ; then
|
||||
logger -t "${self_name}" "SUCCESS!"
|
||||
else
|
||||
logger -t "${self_name}" "FAILED!"
|
||||
exit 1
|
||||
fi
|
||||
[ -z "$3" ] || chmod +x $2
|
||||
}
|
||||
|
||||
# check opkg installed
|
||||
if [ ! -f /opt/bin/opkg ] ; then
|
||||
logger -t "${self_name}" "Installing entware opkg...."
|
||||
@ -38,7 +23,6 @@ if [ ! -f /opt/bin/opkg ] ; then
|
||||
fi
|
||||
chmod +x $INSTALLER
|
||||
sh $INSTALLER >> $INSTALLER.log 2>&1
|
||||
ln -sf /etc/TZ /opt/etc/TZ
|
||||
logger -t "${self_name}" "Updating opkg packages list..."
|
||||
opkg update
|
||||
if [ $? -eq 0 ] ; then
|
||||
|
Reference in New Issue
Block a user