View Single Post
Old 06-06-2024, 06:00 PM   #174
Uppy
Junior Member
Uppy began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2024
Device: Pb 631
Quote:
Originally Posted by Uppy View Post
Can you help me to write a script in ini.d to run on autostart syncthing? My path for syncthing.app is mnt/ext1/applications/synchting.app and bin’s file path is mnt/ext1/applications/syncthing/syncthing(bin).

ChatGPT gives me this
#!/bin/sh
#
# /mnt/ext1/system/etc/init.d/S99autostart
#

case "$1" in
start)
echo "Starting syncthing"
/mnt/ext1/applications/syncthing/syncthing -no-browser -home="/mnt/ext1/applications/syncthing" &
;;
stop)
echo "Stopping syncthing"
killall syncthing
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac

exit 0
I made my .sh working, but i still dont know how to setup autorun on start. I was tryin "update-rc.d", and it maybe working, but ::sysnit: didnt work well for me
Uppy is offline   Reply With Quote