resyn-qt-bash

System Software

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:


THIS IS ONLY FOR SMART TESTERS....
it's not ready for users...




the bash script you can auto syncronize folders

there are 2 configuration files

"$HOME/.kde/resyn-qt/folders_INPUT.lst"
"$HOME/.kde/resyn-qt/folders_OUTPUT.lst"

the script will read line by line the input folder to syncronize with the output folder

so you can use this script to syncronize what you want ,... harddrive phone or whatever

the udev.rules file provides to automount nokia 5800........ if you have not ... you can skip to
copy rules file ...

UDEV FILE

the udev file is this

ACTION=="add", KERNEL=="sd?", ATTRS{idVendor}== "0421", ATTRS{idProduct}=="0156", NAME="%k", SYMLINK+="Nokia 5800 Linux Rulez", OWNER="peace", GROUP="disk", MODE="0777", RUN+="/bin/mkdir /mnt/Nokia_5800"
ACTION=="add", KERNEL=="sd?", ATTRS{idVendor}== "0421", ATTRS{idProduct}=="0156",SYMLINK+="Nokia 5800 Linux Rulez", RUN+="/bin/mount -t vfat -o umask=000,utf8,sync,flush, /dev/%k /mnt/Nokia_5800"

ACTION=="add", KERNEL=="sd?", ATTRS{idVendor}== "0421", ATTRS{idProduct}=="0156",SYMLINK+="Nokia 5800 Linux Rulez", RUN+="/usr/bin/resyn-qt-bash"

ACTION=="remove", KERNEL=="sd?",ATTRS{idVendor}== "0421", ATTRS{idProduct}=="0156", RUN+="/bin/umount /mnt/Nokia_5800"
ACTION=="remove", KERNEL=="sd?",ATTRS{idVendor}== "0421", ATTRS{idProduct}=="0156", RUN+="/bin/rmdir /mnt/Nokia_5800"

like you can see it's to auto-mount nokia5800 but if you have another phone you can easly modify that rules file using this

if you have a phone attach it to your computer with usb and then type in a konsole

lsusb | grep -i Nokia

grep -i Nokia is a filter so if is a samsung .. try samsung or whatever the idea it's to get the idvendor and idproduct

for example for my nokia you have

Bus 001 Device 040: ID 0421:0156 Nokia Mobile Phones

0421 is the idVendor
0156 is the idProduct

now you can understand how to modify the rules file :)
Last changelog:

9 years ago

0.2
fixed udev rules
fixed script to load as root
improvede the script
now you can attach nokia 5800 and it will automatically syncronize your device with default folders..


TO DO
a lots of stuff xD

Be the first to comment

9 years ago

0.2
fixed udev rules
fixed script to load as root
improvede the script
now you can attach nokia 5800 and it will automatically syncronize your device with default folders..


TO DO
a lots of stuff xD

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2
updated Oct 26 2010
added Oct 25 2010
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1
System Tags app software