Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions INFO.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ package="r8152"
version="2.21.4-1"
displayname="RTL8152/8153/8156/8157/8159 driver"
maintainer="bb-qq"
maintainer_url="https://github.com/bb-qq"
distributor="bb-qq"
distributor_url="https://github.com/bb-qq/r8152"
arch="$(pkg_get_platform)"
install_type="package"
thirdparty="yes"
Expand Down
13 changes: 11 additions & 2 deletions SynoBuildConf/install
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,24 @@ create_spk(){
### Copy package center scripts to PKG_DIR
mkdir -p $scripts_dir
cp -av scripts/* $scripts_dir
cp -av *.rules $scripts_dir
cp -av *.rules $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

### Copy wizard UI files if they exist and build is not for DSM 6
PRODUCT_VERSION_WITHOUT_MICRO=$(echo ${PRODUCT_VERSION} | sed -E 's/^([0-9]+\.[0-9]+).+$/\1/')
if [ 1 -eq $(echo "${PRODUCT_VERSION_WITHOUT_MICRO} >= 7.0" | bc) ]; then
if [ -n "$(ls -A WIZARD_UIFILES 2>/dev/null)" ]; then
mkdir -p $PKG_DIR/WIZARD_UIFILES
cp -av WIZARD_UIFILES/* $PKG_DIR/WIZARD_UIFILES
fi
fi

### Generate INFO file
./INFO.sh > INFO
cp INFO $PKG_DIR/INFO
Expand Down
6 changes: 6 additions & 0 deletions WIZARD_UIFILES/install_uifile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[{
"step_title": "Permission setup required",
"items": [{
"desc": "[DSM7 Note] If this is the first time you are installing this driver, special steps are required. See the <a target=\"_blank\" href=\"https://github.com/bb-qq/r8152#preparation\">readme</a> for details."
}]
}]