Page 1 of 1

Help PLS S70smb file

PostPosted: Sun Oct 15, 2017 10:02 pm
by MariuCh
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

Re: Help PLS S70smb file

PostPosted: Mon Oct 16, 2017 9:36 am
by xiaocao
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 !

Re: Help PLS S70smb file

PostPosted: Mon Oct 16, 2017 1:35 pm
by MariuCh
xiaocao Wrote:hi ,


you can add this file via ftp tools .


best regards !


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

Regards,
MariuCh

Re: Help PLS S70smb file

PostPosted: Tue Oct 17, 2017 11:04 am
by xiaocao
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!