Posted: Fri 12 Oct 2018, 16:56
I'm also excited to be involved with the Alpha / Beta test.Thanks guys for the refresh and upgrade of my favourite OS.
READ-ONLY Archive
https://oldforum.puppylinux.com/
Code: Select all
#!/bin/sh
# sfs-direct-save by stemsee copyright (c) 2017 Marcos Contant
# gpl 3.0
# no warranty use at own risk,
#
res=`xwininfo -root | grep 'geometry' | awk '{printf $2}' | cut -f1 -d'+'`
XX=`echo $res | cut -f1 -d'x'`
YY=`echo $res | cut -f2 -d'x'`
is=`mount | grep -e '/aufs/pup_rw'`
svd=`mount | grep -e '/aufs/pup_save'`
pos="+20+$((YY - 80))"
export pos
export is
export svd
ln -s /usr/sbin/sfs-direct-save /root/Startup/sfs-direct-save &> /dev/null
savefn () {
yad --geometry=200x20+0+0 --undecorated --no-border --on-top --no-focus --skip-taskbar --no-buttons --text "Saving" --progress --pulsate &
pid=$!
if [[ -d /aufs ]]; then
. /etc/DISTRO_SPECS
name=S_${DISTRO_FILE_PREFIX}_S.sfs
path=mnt
fi
savede=`yad --on-top --entry`
[[ -z "$savede" ]] && kill $pid && exit
echo "Proceeding with '$name' save on '/$path/$savede' with '$comp'"
yad --geometry=+0+0 --undecorated --skip-taskbar --no-buttons --text "Proceeding with '$name' saved on /$path/$savede" --timeout 1
[[ ! -d /mnt/$savede ]] && mkdir -p /mnt/$savede
mount -f /dev/$savede /mnt/$saved
[[ -f /mnt/$savede/"$name" ]] && rm -f /mnt/$savede/"$name"
sfs=`ls /aufs | grep 'pup_ro[0-4][0-9]'`
if [[ ! -z "$sfs" ]]; then
for i in $sfs
do
answer=`yad --text="include $i ... y or n?" --entry`
case $answer in
y|Y|yes|Yes|YES) rsync -aXxrtv --update /aufs/$i/* /mnt/$savede/"$name"-include;;
*) continue;;
esac
done
if [[ -z "$is" ]]; then
rsync -aXxrtv --update /aufs/pup_save/* /mnt/$savede/"$name"-include
mksquashfs /mnt/$savede/$name-include/* /$path/$savede/$name -keep-as-directory -noappend
else
rsync -aXxrtv --update /aufs/pup_rw/* /mnt/$savede/"$name"-include
mksquashfs /mnt/$savede/$name-include/* /$path/$savede/$name -keep-as-directory -noappend
fi
else
if [[ -z "$is" ]]; then
mksquashfs /aufs/pup_save/* /$path/$savede/$name -keep-as-directory -noappend
else
mksquashfs /aufs/pup_rw/* /$path/$savede/$name -keep-as-directory -noappend
fi
fi
kill $pid
yad --geometry=+0+0 --undecorated --skip-taskbar --no-buttons --text "Finished" --timeout 1
exit 0
}
export -f savefn
if [ -z "$svd" ]; then
ok=`yad --geometry="$pos" --on-top --no-focus --no-buttons --skip-taskbar \
--undecorated --form --field=SAVE:BTN "bash -c savefn"`
fi
I've done something like this before with tahrpupstemsee wrote:I use this script on FatDog to create an sfs of ram (snapshot), but if sfs files are also loaded then there is the option to add those, one by one in order that they were loaded, to the snapshot. I am on a system where a savefile is unfindable!
There is a floating save icon all that is required is to input the partition to save to eg 'sdb1'. If sfs files are loaded in aufs then a y/n dialogue opens for each dir (pup_ro10-44) that is to be included.
Any pointers appreciated.
Code: Select all
#!/bin/sh # sfs-direct-save by stemsee copyright (c) 2017 Marcos Contant # gpl 3.0 # no warranty use at own risk, # res=`xwininfo -root | grep 'geometry' | awk '{printf $2}' | cut -f1 -d'+'` XX=`echo $res | cut -f1 -d'x'` YY=`echo $res | cut -f2 -d'x'` is=`mount | grep -e '/aufs/pup_rw'` svd=`mount | grep -e '/aufs/pup_save'` pos="+20+$((YY - 80))" export pos export is export svd ln -s /usr/sbin/sfs-direct-save /root/Startup/sfs-direct-save &> /dev/null savefn () { yad --geometry=200x20+0+0 --undecorated --no-border --on-top --no-focus --skip-taskbar --no-buttons --text "Saving" --progress --pulsate & pid=$! if [[ -d /aufs ]]; then . /etc/DISTRO_SPECS name=S_${DISTRO_FILE_PREFIX}_S.sfs path=mnt fi savede=`yad --on-top --entry` [[ -z "$savede" ]] && kill $pid && exit echo "Proceeding with '$name' save on '/$path/$savede' with '$comp'" yad --geometry=+0+0 --undecorated --skip-taskbar --no-buttons --text "Proceeding with '$name' saved on /$path/$savede" --timeout 1 [[ ! -d /mnt/$savede ]] && mkdir -p /mnt/$savede mount -f /dev/$savede /mnt/$saved [[ -f /mnt/$savede/"$name" ]] && rm -f /mnt/$savede/"$name" sfs=`ls /aufs | grep 'pup_ro[0-4][0-9]'` if [[ ! -z "$sfs" ]]; then for i in $sfs do answer=`yad --text="include $i ... y or n?" --entry` case $answer in y|Y|yes|Yes|YES) rsync -aXxrtv --update /aufs/$i/* /mnt/$savede/"$name"-include;; *) continue;; esac done if [[ -z "$is" ]]; then rsync -aXxrtv --update /aufs/pup_save/* /mnt/$savede/"$name"-include mksquashfs /mnt/$savede/$name-include/* /$path/$savede/$name -keep-as-directory -noappend else rsync -aXxrtv --update /aufs/pup_rw/* /mnt/$savede/"$name"-include mksquashfs /mnt/$savede/$name-include/* /$path/$savede/$name -keep-as-directory -noappend fi else if [[ -z "$is" ]]; then mksquashfs /aufs/pup_save/* /$path/$savede/$name -keep-as-directory -noappend else mksquashfs /aufs/pup_rw/* /$path/$savede/$name -keep-as-directory -noappend fi fi kill $pid yad --geometry=+0+0 --undecorated --skip-taskbar --no-buttons --text "Finished" --timeout 1 exit 0 } export -f savefn if [ -z "$svd" ]; then ok=`yad --geometry="$pos" --on-top --no-focus --no-buttons --skip-taskbar \ --undecorated --form --field=SAVE:BTN "bash -c savefn"` fi
Code: Select all
[ 75.670067] usb 6-2: new full-speed USB device number 3 using uhci_hcd
[ 75.857468] usb 6-2: New USB device found, idVendor=0b57, idProduct=8502
[ 75.857473] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 75.857477] usb 6-2: Product: Tablet
[ 75.857480] usb 6-2: Manufacturer: Hanvon
[ 75.857483] usb 6-2: SerialNumber: V3.2
[ 75.862601] input: Hanvon tablet as /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/input/input15
[ 75.875418] hanvon_irq - urb shutting down with status: -2
[ 75.911432] hanvon_irq - urb shutting down with status: -2
[/quote]@Mn110: 1. Launch Control Panel, choose Utilities tab, scroll down, click "Bug Report Info Collector", send file.
2. Does your bluetooth work? Can you pair a mouse to it? Outside FF/Chrome, can you pair your BT speaker? Can your speaker make sound when you test with "Fatdog Speaker Test"? (Control Panel -> Sound tab).
This one? /usr/share/X11/xorg.conf.d/50-touchpad-gui.conf.number77 wrote:Could anyone tell me how to find the config file for the touchpad in Fatdog64 721.
P.S. Sorry if this is the wrong place or I am breaking in to a thread.
Thanks
number77
, a script that is not in the current package, so I added that script to my system, and will watch for better results."a script to /root/Startup that loads your saved touchpad configuration each time you login"
Code: Select all
#!/bin/bash
flsynclient -s