Jump to content

Automatic Symlinking for sd card


Just_a_User

Recommended Posts

Hey all,

When installing stuff to the sd card, it often needs symlinking to the working directory on the pineapple nano to complete the installation. For one-off's its fine to do manually, but on larger git install's or opkg packages with many folders/files it can be a PITA. So I got to looking around for tools/scripts, I found a few (some better than others) but think I found something that works, and works well on the pineapple YMMV.

It has one small sized dependency so can be installed to pineapple nano rather than sd : -

opkg update && opkg install coreutils-realpath

You can run it multiple times and it will only create links for unlinked files so could be run on the base directory after adding new files like: -

aln -s /sd/usr/ -d /usr/

I have been using it for a few days and so far so good, so figured I would share for others to try out.  https://github.com/eyit/aln

Hopefully its useful to others.

Edited by Just_a_User
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...