1. Allow more than just one usr_more.sfs
This feature is just excellent for large addons like open office or kde.
Currently Puppy can handle only 1 such addon named usr_more.sfs.
The code for this is in rc.sysinit which is inside image.gz. I have remastered
that and changed rc.sysinit (USRMORE is already there; Just the
USRMOO2 block is new:
Code: Select all
USRMORE=""
if [ ! "`ls $HOMEDIR/usr_more.sfs 2> /dev/null`" = "" ];then
mkdir /.usr_more
echo "Mounting $HOMEDIR/usr_more.sfs file on /.usr_more..."
losetup-FULL /dev/loop4 $HOMEDIR/usr_more.sfs
mount -r -t squashfs -o noatime /dev/loop4 /.usr_more
if [ $? -eq 0 ];then
USRMORE=':/.usr_more=ro'
fi
fi
USRMOO2=""
if [ ! "`ls $HOMEDIR/usr_moo2.sfs 2> /dev/null`" = "" ];then
mkdir /.usr_moo2
echo "Mounting $HOMEDIR/usr_moo2.sfs file on /.usr_moo2..."
losetup-FULL /dev/loop5 $HOMEDIR/usr_moo2.sfs
mount -r -t squashfs -o noatime /dev/loop5 /.usr_moo2
if [ $? -eq 0 ];then
USRMOO2=':/.usr_moo2=ro'
fi
fi
Code: Select all
mount -t unionfs -o dirs=/root/.usr=rw${USRDEVX}${USRMORE}${USRMOO2}:/.usr_cram=ro none /usr;check_status $?
(Actually here only loop5 is required..loo6 is for future use (kde?))
Code: Select all
mknod loop5 b 7 5
mknod loop6 b 7 6
Both were mounted so I had wine and open office 2 available at the same time.
This can easily be expanded for ex. usr_mkde.sfs for kde filesystems,
when it comes available...
There should be also the possibility to make some kind of a loop,
that looks for such usr_m???.sfs and mounts them all assigning
loopn+1... but that would need a lot of testing...
Hope that this can go in next release...
2. USB Keyboard support
Some system don't have a ps/2 port for keyboard+mouse. Just USB.
They don't work in Puppy out of the box
I have made this 2 small changes to make them work.
These changes are again inside image.gz...
a. /etc/rc.d/rc.modules at the end insert this 2 lines:
Code: Select all
modprobe usbkbd
modprobe keybdev
I needed this 2 places, because something, that I have not found yet, unloads the modules in between?
PS