diff options
-rw-r--r-- | Makefile | 1 | ||||
l--------- | initramfs/uclib-rootfs/usr/sbin/udhcpd | 1 | ||||
-rwxr-xr-x | tools/uclibc-wrapper | 13 |
3 files changed, 15 insertions, 0 deletions
@@ -154,6 +154,7 @@ plain-install: cp config-db/slx* $(SLX_BUILD_PATH)$(SLX_BASE_PATH)/bin/; \ cp installer/slx* $(SLX_BUILD_PATH)$(SLX_BASE_PATH)/bin/; \ cp os-plugins/slx* $(SLX_BUILD_PATH)$(SLX_BASE_PATH)/bin/; \ + cp tools/uclibc-wrapper $(SLX_BUILD_PATH)$(SLX_BASE_PATH)/bin/; \ tar --exclude=.svn -cp -C lib OpenSLX \ | tar -xp -C $(SLX_BUILD_PATH)$(SLX_BASE_PATH)/lib; \ tar --exclude=.svn -cp -C boot-env OpenSLX \ diff --git a/initramfs/uclib-rootfs/usr/sbin/udhcpd b/initramfs/uclib-rootfs/usr/sbin/udhcpd new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/initramfs/uclib-rootfs/usr/sbin/udhcpd @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/tools/uclibc-wrapper b/tools/uclibc-wrapper new file mode 100755 index 00000000..b722ddc9 --- /dev/null +++ b/tools/uclibc-wrapper @@ -0,0 +1,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="#" $@ |