mirror of
https://github.com/bb-qq/r8152.git
synced 2026-01-12 08:21:42 +00:00
19 lines
423 B
Bash
Executable File
19 lines
423 B
Bash
Executable File
#!/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
|