Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Adding a 2.5GiB USB NIC to a ds918+ - driver installation failed

As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...

44
11
NAS
DS918+
Operating system
  1. Linux
  2. Windows
good day,

i try to bump up the network connectivity of my NAS and bought a 2.5GiB USB NIC and plugged it in front USB3:
It is recognized:
Code:
lsusb
0bda:8156:3104 00  3.20 5000MBit/s 256mA 2IFs (Realtek USB 10/100/1G/2.5G LAN 401000001)

The DS918+ is on DSM 7.2.1 U5 and i pulled r8152-apollolake-2.17.1-2_7.2.spk
from GitHub - bb-qq/r8152: Synology DSM driver for Realtek RTL8152/RTL8153/RTL8156 based adapters

i also did the manual step to install the spk_su:
Code:
ll /opt/sbin/spk_su
-rwsr-xr-x 1 root root 20952 Sep  5 17:15 /opt/sbin/spk_su

Unfortuanly installation / repair fails, even afer a reboot:


Code:
Sep 05 17:54:26 homeland synoscgi_SYNO.Core.Package.Installation_1_upgrade[19885]: SYNOPKGMGR: Failed to install package, spk=[/volume1/@tmp/upload_tmp.194240]
 result=[{"action":"repair","beta":false,"betaIncoming":false,"broken_by":"install_corruption","error":{"code":278,"description":"\"failed to run postinst script\""},
"finished":true,"installReboot":false,"installing":true,"language":"enu","last_stage":"start","package":"r8152",
"packageName":"RTL8152/RTL8153 driver","pid":19885,
"scripts":[{"code":0,"message":"","type":"preupgrade"},{"code":0,"message":"","type":"preuninst"},
{"code":0,"message":"","type":"postuninst"},{"code":0,"message":"","type":"preinst"},
{"code":5,"message":"","type":"postinst"}],"spk":"/volume1/@tmp/upload_tmp.194240","stage":"install_failed_and_start_failed","status":"broken","status_code":150,"status_description":"failed to complete installation"
,"success":false,"username":"XXXXX","version":"2.17.1-2"}]

postinst looks like this:

Code:
#!/bin/sh
spk_su="/opt/sbin/spk_su"
privilege_file=`dirname $0`/../conf/privilege


if [ -w "${privilege_file}" ]; then
    # DSM 7 beta
    sed -i 's/package/root/g' "${privilege_file}"
elif [ -e "${privilege_file}" ]; then
    # DSM 7 release
    if [ -x "${spk_su}" ]; then
        "${spk_su}" "${SYNOPKG_PKGNAME}"
    else
        echo "Failed to change ${privilege_file}" > /dev/stderr
        exit 5
    fi
fi


exit 0

now i am stuck..

any hint?
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Popular tags from this forum

dsm

Thread Tags

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending content in this forum

Back
Top