diff options
| author | 2024-11-12 22:26:02 -0500 | |
|---|---|---|
| committer | 2024-11-12 22:36:49 -0500 | |
| commit | 53a0a5473f45d37027af9663638adbf56667e4ca (patch) | |
| tree | 05c6c39678a9005f95c00e0fdf31193657bd4d3d /hosts/moyo/scripts | |
| download | dotfiles-53a0a5473f45d37027af9663638adbf56667e4ca.tar.gz dotfiles-53a0a5473f45d37027af9663638adbf56667e4ca.tar.bz2 dotfiles-53a0a5473f45d37027af9663638adbf56667e4ca.zip | |
Hopefully no leaks
Diffstat (limited to 'hosts/moyo/scripts')
| -rwxr-xr-x | hosts/moyo/scripts/do-grub-install | 2 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/emerge-update | 2 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/export-nfs | 2 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/gen-dracut | 2 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/mount-luks | 8 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/raid-status | 2 |
6 files changed, 18 insertions, 0 deletions
diff --git a/hosts/moyo/scripts/do-grub-install b/hosts/moyo/scripts/do-grub-install new file mode 100755 index 0000000..8dda1cb --- /dev/null +++ b/hosts/moyo/scripts/do-grub-install @@ -0,0 +1,2 @@ +#! /usr/bin/env sh +sudo grub-install --target=x86_64-efi --efi-directory=/boot diff --git a/hosts/moyo/scripts/emerge-update b/hosts/moyo/scripts/emerge-update new file mode 100755 index 0000000..2f8d3fe --- /dev/null +++ b/hosts/moyo/scripts/emerge-update @@ -0,0 +1,2 @@ +#! /usr/bin/env sh +sudo emerge --ask --verbose --update --deep --newuse @world diff --git a/hosts/moyo/scripts/export-nfs b/hosts/moyo/scripts/export-nfs new file mode 100755 index 0000000..230f49d --- /dev/null +++ b/hosts/moyo/scripts/export-nfs @@ -0,0 +1,2 @@ +#! /usr/bin/env sh +sudo exportfs -o rw,async,insecure,no_subtree_check -i 192.168.0.0/16:$1 diff --git a/hosts/moyo/scripts/gen-dracut b/hosts/moyo/scripts/gen-dracut new file mode 100755 index 0000000..9a1eade --- /dev/null +++ b/hosts/moyo/scripts/gen-dracut @@ -0,0 +1,2 @@ +#! /usr/bin/env sh +dracut -a lvm --kver=6.6.30-gentoo --force diff --git a/hosts/moyo/scripts/mount-luks b/hosts/moyo/scripts/mount-luks new file mode 100755 index 0000000..eba9b3f --- /dev/null +++ b/hosts/moyo/scripts/mount-luks @@ -0,0 +1,8 @@ +#! /usr/bin/env sh +sudo cryptsetup luksOpen /dev/mapper/moyo--vg1-moyo--store0--raid1 moyo-store0 +sudo mount /dev/mapper/moyo-store0 /mnt/store0 +sudo mount --bind /mnt/store0/c /home/andrew/c +sudo mount --bind /mnt/store0/media/pics /home/andrew/pics +$HOME/scripts/export-nfs /home/andrew/c +$HOME/scripts/export-nfs /home/andrew/pics +$HOME/scripts/export-nfs /mnt/store0/torrents diff --git a/hosts/moyo/scripts/raid-status b/hosts/moyo/scripts/raid-status new file mode 100755 index 0000000..8e1e86a --- /dev/null +++ b/hosts/moyo/scripts/raid-status @@ -0,0 +1,2 @@ +#! /usr/bin/env sh +sudo lvs -a -o name,copy_percent,health_status,devices moyo-vg1 |