View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#110
@sixwheeledbeast

Did not yet check your scripts completely, but for the multiple banner I do have explanation:
please check out last line of my template
Code:
#!/bin/sh
# executing a shell script given as parameter(s) as root

if [ `id -u` != 0 ] ; then
       exec sudo gainroot <<EOF
exec sh $0 $*
EOF
       exit $?
fi

# own shell code from here
You have to type your code below that line, as this will detect if you already have root privileges or not and call the script again with su privileges. so everything above that will be executed twice.

And for need to change the code by you. I never had the need as i always followed the above rule. So change back, put everything below and test again.

About
I don't think large swaps have a benefit.
When fragmentation occurs, swapoff will take forever.
I think you are wrong. Only amount of swap data in use, i.e. what conky (cat /proc/swaps) shows, will be moved. So bigger swap parts will help to minimze swap refresh actions, as time until fragmentation starts, will increase.
(did not test yet, but am pretty sure)
 

The Following 6 Users Say Thank You to peterleinchen For This Useful Post: