View Single Post
Old 05-09-2007, 12:54 PM   #43
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
I've been playing a bit more with ipkg, and it already has the option to create and delete symbolic links from root to the memory card... We should be able to use internal tools and create simple ipkg packages.

Add into /etc/ipkg.conf

Code:
dest cf /mnt/cf/_installed
To install:


Code:
root@ereader# ipkg -d cf install xournal_0.3.3-iliad.0.1_arm.ipk
Then:

Code:
root@ereader# ipkg-link add xournal
*** Command: add
*** Locating package
*** Found package on /mnt/cf/_installed
*** Adding xournal
*** Done.
Code:
root@ereader:/usr/local/bin# ls -la
drwxr-xr-x    2 root     root         1024 May  9 05:35 .
drwxrwxr-x    5 root     1000         1024 May  9 05:35 ..
lrwxrwxrwx    1 root     root           40 May  9 05:35 xournal -> /mnt/cf/_installed/usr/local/bin/xournal
Code:
# ipkg-link
Usage: 
    /usr/bin/ipkg-link add    packagename (links "packagename" to root filesystem)
    /usr/bin/ipkg-link remove packagename (unlinks "packagename" from root filesystem)
    /usr/bin/ipkg-link list   mountpoint  (lists packages on "mountpoint", e.g. '/mnt/card')
    /usr/bin/ipkg-link mount  mountpoint  (links all packages on "mountpoint", e.g. '/mnt/card')
    /usr/bin/ipkg-link umount mountpoint  (unlinks all packages on "mountpoint", e.g. '/mnt/card')
Adam B. is offline   Reply With Quote