2015-11-29

2015-11-29 01:06 pm

automount usb read write all

apt-get install usbmount

vi /etc/usbmount/usbmount.conf

MOUNTOPTIONS="noexec,nodev,noatime,nodiratime"
FS_MOUNTOPTIONS="-fstype=vfat,umask=0000"

:wq

vi /etc/samba/smb.conf
[fleshka]
path = /media/usb0
browseable = yes
writeable = yes
guest ok = yes
read only = no
;valid users = root
create mask = 666
directory mask = 0777

итого

в getstream.sh

if mount |grep usb; then
        echo "USB  mounted";
        VLC_OUTDIR=/media/usb0/2see
        mkdir -p $VLC_OUTDIR
else
        echo "USB not mounted";
        VLC_OUTDIR=/home/2see
fi
echo "VLC_OUTDIR is  $VLC_OUTDIR";

timeout $2m cvlc $1  --sout file/ts:$VLC_OUTDIR/$3-`date +%F-%k%M`.mp4
sync
2015-11-29 05:32 pm

Не смешите наши F-16

Не смешите наши F-16



posted via robin poster