Compare commits
8 Commits
00324dfb5d
...
modularize
| Author | SHA1 | Date | |
|---|---|---|---|
|
2ebb72620b
|
|||
|
25afed7541
|
|||
|
b8b5918feb
|
|||
|
fd177fa071
|
|||
|
aaa209a056
|
|||
|
38dc3ab73a
|
|||
|
3c8719450d
|
|||
|
e8c745a307
|
@@ -54,6 +54,7 @@ openssh-{client,server} \
|
|||||||
popularity-contest \
|
popularity-contest \
|
||||||
printer-driver-all \
|
printer-driver-all \
|
||||||
rsync \
|
rsync \
|
||||||
|
sudo \
|
||||||
systemd-timesyncd \
|
systemd-timesyncd \
|
||||||
tasksel \
|
tasksel \
|
||||||
zfs-initramfs \
|
zfs-initramfs \
|
||||||
|
|||||||
8
mount.sh
8
mount.sh
@@ -6,15 +6,23 @@ mount \
|
|||||||
--types proc \
|
--types proc \
|
||||||
proc \
|
proc \
|
||||||
/mnt/proc
|
/mnt/proc
|
||||||
|
|
||||||
mount \
|
mount \
|
||||||
--types sysfs \
|
--types sysfs \
|
||||||
sys \
|
sys \
|
||||||
/mnt/sys
|
/mnt/sys
|
||||||
|
|
||||||
mount \
|
mount \
|
||||||
--bind \
|
--bind \
|
||||||
/dev \
|
/dev \
|
||||||
/mnt/dev
|
/mnt/dev
|
||||||
|
|
||||||
mount \
|
mount \
|
||||||
--types devpts \
|
--types devpts \
|
||||||
pts \
|
pts \
|
||||||
/mnt/dev/pts
|
/mnt/dev/pts
|
||||||
|
|
||||||
|
mount \
|
||||||
|
--types efivarfs \
|
||||||
|
efivarfs \
|
||||||
|
/mnt/sys/firmware/efi/efivars
|
||||||
|
|||||||
4
wifi.sh
4
wifi.sh
@@ -35,9 +35,9 @@ nmcli radio wifi on
|
|||||||
nmcli device wifi list
|
nmcli device wifi list
|
||||||
|
|
||||||
printf "Enter the SSID of the WiFi network you wish to connect to:\n"
|
printf "Enter the SSID of the WiFi network you wish to connect to:\n"
|
||||||
read -r WIFI_NAME
|
read -r wifiName
|
||||||
|
|
||||||
nmcli --ask device wifi connect ${wifiName}
|
nmcli --ask device wifi connect "${wifiName}"
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
|
|||||||
12
zfs.sh
12
zfs.sh
@@ -222,17 +222,13 @@ if [[ "${1}" == '--key' ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${1}" == '--unmount' ]]; then
|
if [[ "${1}" == '--unmount' ]]; then
|
||||||
mount | grep -v zfs | tac | awk '/\/mnt/ {print $3}' | xargs -I {} umount -Rlf {}
|
umount \
|
||||||
|
-nR \
|
||||||
if [[ "${ID}" == 'fedora' ]]; then
|
/mnt
|
||||||
umount \
|
|
||||||
-nR \
|
|
||||||
/mnt
|
|
||||||
fi
|
|
||||||
|
|
||||||
zpool \
|
zpool \
|
||||||
export \
|
export \
|
||||||
-a
|
${hostname,,}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${1}" == '--host-id' ]]; then
|
if [[ "${1}" == '--host-id' ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user