49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# updoot and clean up package shit
|
|
# notably not upgrading for stability
|
|
sudo apt update
|
|
sudo apt autoremove -y
|
|
|
|
user=princesspi
|
|
userhome=/home/$princesspi
|
|
zero_file_path="$userhome/0.0"
|
|
|
|
echo "nukan .ssh and github token"
|
|
rm -rf "$userhome/.ssh" "$userhome/.gh_token"
|
|
|
|
echo "logging out of github"
|
|
gh auth logout
|
|
|
|
echo "removing user.name and user.email from git configs"
|
|
git config --unset user.name
|
|
git config --unset user.email
|
|
|
|
echo "change pass to $user"
|
|
passwd $user
|
|
|
|
echo "now to set pw to be reset on first login"
|
|
sudo passwd -e $user
|
|
|
|
# not doin zeroin rn
|
|
# echo "zeroing out all da fuckin space fuuck"
|
|
# zero_file_path="$userhome/0.0"
|
|
# if ! sudo dd if=/dev/zero bs=4M status=progress > "$zero_file_path"; then
|
|
# echo -e "$zero_file_path file reached max size, deleting"
|
|
# sudo rm -f "$zero_file_path"
|
|
# echo -e "delete file retcode: retcode: $?"
|
|
# fi
|
|
#
|
|
# echo "thank fuck that fucking ended"
|
|
|
|
echo "now manually clear all bluetooth and wifi now"
|
|
|
|
echo "once those are clear, all donesies"
|
|
|
|
echo "shut down? y/n"
|
|
|
|
read check
|
|
if [[ "$check" =~ [yY] ]]; then
|
|
sudo shutdown now
|
|
else
|
|
exit
|
|
fi |