summaryrefslogtreecommitdiffstats
path: root/tools/uclibc-wrapper
blob: b722ddc97550714027b65131537f77385e5d05e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

SLX_PATH=/opt/openslx/share
SLX_UCLIB_PATH=$SLX_PATH/uclib-rootfs

[ -f $SLX_PATH ] || echo "Can't find OpenSLX Installation.." && exit 1

[ -f /lib/ld-uClibc.so.0 ] && ln -sf $SLX_PATH/uclib-rootfs/lib/ld-uClibc.so.0


PATH=$SLX_UCLIB_PATH/bin:$SLX_UCLIB_PATH/usr/bin:$SLX_UCLIB_PATH/sbin:$SLX_UCLIB_PATH/usr/sbin
LD_LIBRARY_PATH=$SLX_UCLIB_PATH/lib:$SLX_UCLIB_PATH/usr/lib 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH PATH=$PATH PS1="#" $@