1
0
mirror of https://github.com/bb-qq/r8152.git synced 2026-01-12 08:21:42 +00:00

Added DSM 7 support.

This commit is contained in:
bb-qq
2021-07-10 18:08:50 +09:00
parent c3eef1887f
commit f9d2442200
5 changed files with 37 additions and 6 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# autogen
SynoBuildConf/depends
conf/privilege

28
INFO.sh
View File

@ -8,6 +8,32 @@ version="2.15.0-1"
displayname="RTL8152/RTL8153 driver"
maintainer="bb-qq"
arch="$(pkg_get_platform)"
description="Realtek RTL8152/RTL8153 Based USB Ethernet Adapters driver."
install_type="package"
thirdparty="yes"
[ "$(caller)" != "0 NULL" ] && return 0
if [ "${PRODUCT_VERSION}" = "7.0" ]; then
os_min_ver="7.0-40000"
RUN_AS="package"
INSTRUCTION=' [DSM7 note] If this is the first time you are installing this driver, special steps are required. See the readme for details.'
else
RUN_AS="root"
fi
cat <<EOS > `dirname $0`/conf/privilege
{
"defaults": {
"run-as": "${RUN_AS}"
}
}
EOS
cat <<EOS > `dirname $0`/SynoBuildConf/depends
[default]
all="${PRODUCT_VERSION}"
EOS
description="Realtek RTL8152/RTL8153 Based USB Ethernet Adapters driver.${INSTRUCTION}"
pkg_dump_info

View File

@ -1,4 +0,0 @@
# Copyright (C) 2000-2017 Synology Inc. All rights reserved.
[default]
all="6.2"

View File

@ -24,11 +24,16 @@ create_package_tgz() {
create_spk(){
local scripts_dir=$PKG_DIR/scripts
local conf_dir=$PKG_DIR/conf
### Copy package center scripts to PKG_DIR
mkdir -p $scripts_dir
cp -av scripts/* $scripts_dir
### Copy package conf to PKG_DIR
mkdir -p $conf_dir
cp -av conf/* $conf_dir
### Copy package icon
cp -av PACKAGE_ICON*.PNG $PKG_DIR

1
conf/resource Normal file
View File

@ -0,0 +1 @@
{}