forked from bb-qq/aqc111
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINFO.sh
executable file
·39 lines (31 loc) · 819 Bytes
/
INFO.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Copyright (c) 2000-2017 Synology Inc. All rights reserved.
source /pkgscripts-ng/include/pkg_util.sh
package="aqc111"
version="1.3.3.0-4"
displayname="AQC111 driver"
maintainer="bb-qq"
arch="$(pkg_get_platform)"
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] The installation will fail the first time. 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="Driver for Aquantia AQC111U Based USB Ethernet Adapters.${INSTRUCTION}"
pkg_dump_info