Moderator Control Panel ]

Help PLS S70smb file

Help PLS S70smb file

Postby MariuCh » Sun Oct 15, 2017 10:02 pm

Hi,
I accidentally deleted the file /etc/init.d/S70smb (I'm not sure the exact file name).
1. Can anyone attach it?
2. After restarting MOI+ does not support network - no IP on the display. I suspect the reason is to remove the above file ...

Does anyone have an idea how to add this file without resetting the device and without the RS232 cable?

Regards,
MariuCh
MariuCh
 
Posts: 17
Joined: Wed Jun 22, 2016 4:17 am

Re: Help PLS S70smb file

Postby xiaocao » Mon Oct 16, 2017 9:36 am

hi ,


you can add this file via ftp tools .
/etc/init.d/S70smb

#!/bin/sh
#
# samba Starts samba
#

start() {
echo -n "Starting samba: "
/usr/local/bin/check_net.sh &
/sbin/hwclock -w
#/usr/local/bin/lcd.sh > /dev/null 2>&1 &
#mount -t ext3 /dev/sda1 /mnt/disk
/root/checkdisk
/usr/local/samba/sbin/smbd -D
/usr/local/samba/sbin/nmbd -D
echo "OK"
}
stop() {
echo -n "Stopping samba: "
killall smbd nmbd
echo "OK"
}
restart() {
stop
start
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit $?





best regards !
xiaocao
 
Posts: 71
Joined: Tue Jun 25, 2013 5:48 pm

Re: Help PLS S70smb file

Postby MariuCh » Mon Oct 16, 2017 1:35 pm

xiaocao Wrote:hi ,


you can add this file via ftp tools .


best regards !


Thank You very much.
What are "FTP tools"?

Regards,
MariuCh
MariuCh
 
Posts: 17
Joined: Wed Jun 22, 2016 4:17 am

Re: Help PLS S70smb file

Postby xiaocao » Tue Oct 17, 2017 11:04 am

hi ,


you can put S70smb file in usb flash . insert usb to moi+ ,it will auto mount in /mnt/usb dir .then copy S70smb to /etc/init.d/ dir.
#cp /mnt/usb/S70smb /etc/init.d/
#chmod 777 /etc/init.d/S70smb


best regards!
xiaocao
 
Posts: 71
Joined: Tue Jun 25, 2013 5:48 pm


Return to MOI+

Who is online

Users browsing this forum: No registered users and 4 guests