diff -urN flashboot.old/initial-conf/rc.conf flashboot.extention/initial-conf/rc.conf
--- flashboot.old/initial-conf/rc.conf	Thu Aug 31 10:40:20 2006
+++ flashboot.extention/initial-conf/rc.conf	Thu Aug 31 13:08:25 2006
@@ -22,6 +22,9 @@
 watchdogd_flags=NO
 hostapd_flags=NO
 
+# Disable or set size for /usr/local/
+usrrd_size=NO           # No of 512-byte blocks e.g. "30720" = about 15MB
+
 # These are not included by default
 rarpd_flags=NO		# for normal use: "-a"
 bootparamd_flags=NO	# for normal use: ""
diff -urN flashboot.old/initial-conf/rc.initial flashboot.extention/initial-conf/rc.initial
--- flashboot.old/initial-conf/rc.initial	Thu Aug 31 10:40:20 2006
+++ flashboot.extention/initial-conf/rc.initial	Fri Sep  1 10:48:46 2006
@@ -34,7 +34,7 @@
 trap : 3	# shouldn't be needed
 
 HOME=/; export HOME
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
 export PATH
 
 if [ $1x = shutdownx ]; then
@@ -271,6 +271,31 @@
 fi
 
 echo -n ' cron';		cron
+
+echo "."
+
+if [ X"${usrrd_size}" != X"NO" ]; then
+
+	echo "Creating /usr/local/.."
+	mkdir -p /usr/local
+	if ! mount_mfs -s ${usrrd_size} /dev/wd0c /usr/local ; then
+		echo "Mount /usr/local failed"
+		exit 1  
+	fi
+
+
+	echo "Unpacking packages.."
+	cd /usr/local
+	for x in /flash/pkg/*.tgz ; do
+		if [ -r $x ]; then
+			echo -n "Unpacking package ${x} from flash... "
+			cpio -idz -H tar -f "share/examples/*" "share/doc/*" "include/*" "man/*" "+*" < $x 2>/dev/null
+			echo "done"
+		fi
+	done
+
+	/sbin/ldconfig /usr/local/lib
+fi
 
 echo "."
 
diff -urN flashboot.old/list flashboot.extention/list
--- flashboot.old/list	Thu Aug 31 10:40:20 2006
+++ flashboot.extention/list	Thu Aug 31 12:58:44 2006
@@ -113,6 +113,7 @@
 COPY ${DESTDIR}/bin/systrace			bin/systrace
 COPY ${DESTDIR}/bin/test			bin/test
 COPY ${DESTDIR}/sbin/brconfig			sbin/brconfig
+COPY ${DESTDIR}/sbin/ldconfig			sbin/ldconfig
 COPY ${DESTDIR}/sbin/dhclient			sbin/dhclient
 COPY ${DESTDIR}/sbin/dhclient-script		sbin/dhclient-script
 COPY ${DESTDIR}/sbin/dmesg			sbin/dmesg

