{"id":18084891,"url":"https://github.com/coderofsalvation/udev-autorun","last_synced_at":"2025-04-06T00:13:25.457Z","repository":{"id":11293097,"uuid":"13705899","full_name":"coderofsalvation/udev-autorun","owner":"coderofsalvation","description":"udev rule + utility which automatically runs a shellscript on drives when plugged in (or asks for action like windows)","archived":false,"fork":false,"pushed_at":"2020-05-28T19:30:29.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:21:47.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2013-10-19T17:59:13.000Z","updated_at":"2022-11-22T16:54:02.000Z","dependencies_parsed_at":"2022-07-21T12:48:06.630Z","dependency_job_id":null,"html_url":"https://github.com/coderofsalvation/udev-autorun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fudev-autorun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fudev-autorun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fudev-autorun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fudev-autorun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/udev-autorun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415976,"owners_count":20935387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T15:08:33.060Z","updated_at":"2025-04-06T00:13:25.425Z","avatar_url":"https://github.com/coderofsalvation.png","language":"Shell","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"readme":"udev-autorun\n============\n\nudev rule which automatically runs a shellscript on drives when plugged in (or asks for action like windows)\n\n\u003cimg src=\"http://www.zimagez.com/full/9a5e7896ee90b1c4329a618ec91320d44349ed20d82907cf6924c0fb25bf0a9d7a6b5e3d2639837ae08c16c817e3357f43453a65fce044fb.php\"/\u003e\n\n### WHY ###\n\nI wanted a idiotproof way to just run scripts on pluggable drives (aka the infamous autorun).\nUdev seems very attractive at first, but before you know many hours are spent to figure out this beast.\nI use many sd/smartmedia cards while Im making music with my hardware devices, so I wanted synchronisation and other\nrepetitive tasks to be automated: sometimes automatically, sometimes optional.\n\nThis is a simple shellscript which facilitates all this.\n\n### HOW ###\n\nWith `udev-autorun` you can just add several autorun scripts on your usb device, and automatically run or prompt tasks to the user. Its modular so the possibilities are unlimited\n\n### INSTALL / GETTING STARTED ###\n\nDo the following as *nonroot* user with sudo-privileges:\n\n    git clone https://github.com/coderofsalvation/udev-autorun.git\n    cd udev-autorun\n    ./install.sh\n\nNow start adding an example autorunmodule to your drive 'MySDCard'\n\n    udev-autorun init /media/MySDCard example\n\nNow re-plugin your usb stick and see what happens.\nIf you are not running an graphical webenvironment (homeserver/headless) all modules are executed, else\nyou will see something like this:\n\n\u003cimg src=\"http://www.zimagez.com/full/26f029e08c8da8f8329a618ec91320d46ba3073632b24e1f6924c0fb25bf0a9d7a6b5e3d2639837a5daed7dd5767d26afed5ff687232e99b.php\"/\u003e\n\nThis means you can choose which action you want to perform, or just simply exit.\n\n### EXAMPLE APPLICATIONS ###\n\n* automatically copy pdf's from a certain folder to your ebook (upon connect)\n* automatically copy mp3's from a certain folder to your mp3player\n* automatically gather stats from internet and write as html/pdf to your ebook/hpc/etc\n* automatically backup files from your usbdrives/flashcard to your harddrive\n* automatically copy samples from your harddrive to your flashcard (for liveacts etc)\n* trigger your coffeemachine when somebody plugs in a special usbdevice\n\n### CONCLUSION ###\n\nUdev-autorun is your portal to bash shellscripting which really makes the unthinkable possible.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fudev-autorun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fudev-autorun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fudev-autorun/lists"}