-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed script not disabling /dev_blind (use /dev_blind?0)
- Loading branch information
1 parent
51bf6da
commit 17ac584
Showing
11 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#! /bin/sh | ||
### BEGIN INIT INFO | ||
# Provides: ps3netsrv | ||
# Required-Start: networking | ||
# Required-Stop: networking | ||
# Default-Start: 2 3 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Start PS3NetSrv. | ||
# Description: Autostart PlayStation 3 Sharing Service. | ||
### END INIT INFO | ||
# | ||
|
||
# Name of the demon (Название демона) | ||
name="ps3netsrv" | ||
# The path to the demon (Путь до демона) | ||
dir="/opt/ps3netsrv" | ||
# Launch options (Параметры для запуска) | ||
arg="/mnt/Playstation 4500 192.168.*.*" | ||
# Search PID (Поиск PID) | ||
pid="$(pgrep ps3netsrv)" | ||
# User (Пользователь) | ||
user="ps3netsrv" | ||
|
||
# Command start (Команда start) | ||
start() | ||
{ | ||
# от имени пользователя ps3netsrv запуск ps3netsrv | ||
su $user -c "$dir/$name $arg" | ||
echo "$name start" | ||
} | ||
# Command stop (Команда stop) | ||
stop() | ||
{ | ||
# убиваем ps3netsrv | ||
su $user -c "kill $pid" | ||
echo "$name stop" | ||
} | ||
# Restart command :: Stops, waits 1 second, starts the daemon again (Команда restart :: Останавливает, ждёт 1 сек, снова запускает демона) | ||
restart() | ||
{ | ||
stop | ||
sleep 1 | ||
start | ||
} | ||
# Launch conditions (Условия запуска функций) | ||
case "$1" in | ||
start) | ||
start | ||
;; | ||
stop) | ||
stop | ||
;; | ||
reload|restart) | ||
restart | ||
;; | ||
*) | ||
# Output usage help (Вывод help по скрипту) | ||
echo "Usage: {start|stop|restart}" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
exit 0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Working version of ps3netsrv for Debian Jessie on PowerPC 44x (WesternDigital MyBook Live Duo NAS with CPU APM82181) | ||
|
||
Compiled by RabinoVich | ||
https://drive.google.com/file/d/1FJmOTYj1F2G85BO6W66QKilEU-78r7Nj | ||
|
||
Simple /etc/init.d script to autostart ps3netsrv | ||
https://drive.google.com/file/d/1-QwhHQ0_sHR65PyjHBOvIL958RdCI2A8 |
Binary file modified
BIN
+127 Bytes
(100%)
_Projects_/updater/pkgfiles/USRDIR/webftp_server_full.sprx
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+53 Bytes
(100%)
_Projects_/updater/pkgfiles/USRDIR/webftp_server_noncobra.sprx
Binary file not shown.
Binary file modified
BIN
+74 Bytes
(100%)
_Projects_/updater/pkgfiles/USRDIR/webftp_server_rebug_cobra_ps3mapi.sprx
Binary file not shown.
Binary file modified
BIN
+127 Bytes
(100%)
_Projects_/updater/update/dev_hdd0/plugins/webftp_server.sprx
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
_Projects_/updater/update/dev_hdd0/plugins/webftp_server_lite.sprx
Binary file not shown.
Binary file modified
BIN
+53 Bytes
(100%)
_Projects_/updater/update/dev_hdd0/plugins/webftp_server_noncobra.sprx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters