Jump to content

Script bei unassigned Devices einfügen - Erklärung für Neulinge


eLpresidente
Go to solution Solved by alturismo,

Recommended Posts

Hi ich schaff es nicht ein Script, bei unassigned devices reinzu bekommen. 

 

Ich würde gerne wissen, wie und wo ich ein Script ablegen muss um im Dropdown Menu, das script angezeigt zu bekommen. 

 

image.thumb.png.cacfee80319ac4770e631e3bb12b75d8.png

 

image.thumb.png.405e411e9cae1042e1c2f40ecb73686a.png

 

Choose your Script File Name from the selection dropdown <-- hier ist nichts drinnen

or enter the desired Script <-- versteh ich leider nicht (also klar, gib das gewünschte Script ein, aber ich denke ich kann hier ja wohl kaum das ganze Script rein schreiben). 

 

vielleicht kann sich einer die Mühe machen, es mir mit bsp. zu erklären.

Ich habe diverse Scripts in "User Scripts" ziel wäre es das mgut Script für Backups zu nutzen, wenn ich mal verstanden habe wie das geht. 

 

Danke schonmal für eure hilfe

Link to comment
  • Solution
2 hours ago, eLpresidente said:

versteh ich leider nicht (also klar, gib das gewünschte Script ein, aber ich denke ich kann hier ja wohl kaum das ganze Script rein schreiben). 

wie groß muss denn die Textbox sein ? da würdest du natürlich den kompletten Inhalt einsetzen ... abseits von externen scripts (wie es auch da steht, or = oder)

 

image.thumb.png.b5cc103fb116ba248b9f6da476ea5cbd.png

 

ansonsten wie bereits im anderen Thread erwähnt, frag doch einfach im Original Thread an (englisch) ... wenn du dich nicht traust einfach mal den Pfad manuell einzugeben zu dem abgelegten script.

 

image.thumb.png.12316ed08279944448f9a95b93def895.png

  • Like 1
Link to comment

Ohh man alti.. du machst mich fertig.. 

Hättest doch einfach unter dem hier.. "ja so geht's" schreiben können 😉 

 

Device Script: 

 

Schreib ich jetzt eine Datei im Texteditor mit "Inhalt Script" und speichere die als z.B. ScriptBackup.sh ab und lege Sie irgendwo auf dem Server ab und gebe entsprechend den Pfad hier an? 

 

 

1 hour ago, alturismo said:

wie groß muss denn die Textbox sein ?

Auf jeden Fall größer wenn da ein Script rein muss.. zumindest für mich.. des sah einfach immer nur nach dem Feld für Pfad aus.. wie auch im bsp. Angezeigt.

 

Für euch ist das immer alles logisch.. für mich nicht so wirklich.. 😁😂

 

Aber danke fürs aushelfen.. bist halt ein guter Mod.. 😘

Link to comment

The best way to create a device script is to click on the 'Default' button to load the default script.  Then put your custom operations in the proper place in the default script to do what you want.  The UD scripts are stored on the flash at /flash/config/plugins/unassigned.devices/.  It's not a good idea to use a User Script as a device script.

 

The best use of a User Script is to do something like the following, but run it as a User Script:

  • Mount the UD disk using the rc.unassigned script and refer to the disk's alias name rather than a device designation as they change on reboot.
  • Perform the desired operations.
  • Unmount the disk using the rc.unassigned script, again referring to the disk by it's alias name and not device designation.

I have a backup script to a UD device run in User Scripts once a day.

 

Click on the 'Help' icon while on the UD webpage and you'll see more about the rc.unassigned options.

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...