Initial import

This commit is contained in:
JPT committed 2017-03-31 13:54:00 +02:00
commit 7bc6d729f7
18 files changed
+238

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
set -x
# load settings from config file
. /etc/default/grub
# create config
grub-mkconfig -o /boot/grub/grub.cfg
# install on ssd and hdd
#grub-install --modules="$GRUB_PRELOAD_MODULES" /dev/sda
grub-install --modules="$GRUB_PRELOAD_MODULES" /dev/sdb
# sync and that's it
sync
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$
db=$tmp/db
fs=$tmp/fs
mkdir "$tmp"
trap 'rm -rf "$tmp"' EXIT
pacman -Qlq | sort -u > "$db"
find /etc /opt /usr ! -name lost+found \( -type d -printf '%p/\n' -o -print \) | sort > "$fs"
comm -23 "$fs" "$db"
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$
db=$tmp/db
fs=$tmp/fs
mkdir "$tmp"
pacman -Qlq | sort -u > "$db"
find /bin /etc /lib /sbin /usr \
! -name lost+found \
\( -type d -printf '%p/\n' -o -print \) | sort > "$fs"
comm -23 "$fs" "$db"
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
Cnt="Germany";
awk -v GG=$Cnt '{if(match($0,GG) != "0")AA="1";if(AA == "1"){if( length($2) != "0" )print substr($0,2) ;else AA="0"} }' /etc/pacman.d/mirrorlist.pacnew > /etc/pacman.d/mirrorlist.germany
rankmirrors -n 6 /etc/pacman.d/mirrorlist.germany > /etc/pacman.d/mirrorlist
rm /etc/pacman.d/mirrorlist.germany
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
hdparm -y /dev/sdc
hdparm -y /dev/sdd