mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Add arch linux install scripts and update debian install scripts
This commit is contained in:
parent
029020324a
commit
015eafa945
4 changed files with 367 additions and 28 deletions
|
|
@ -1,35 +1,21 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
function main
|
||||
log 'Upgrading debian to unstable.' head
|
||||
|
||||
log 'Update apt sources list'
|
||||
echo '
|
||||
deb http://ftp.us.debian.org/debian unstable main contrib non-free
|
||||
deb-src http://ftp.us.debian.org/debian unstable main contrib non-free' | sudo tee /etc/apt/sources.list
|
||||
|
||||
log 'Upgrading debian to unstable'
|
||||
sudo apt-get update >/dev/null 2>&1
|
||||
sudo apt-get dist-upgrade --yes
|
||||
|
||||
log 'Done upgrading debian to unstable and rebooting.' tail
|
||||
|
||||
log 'Rebooting'
|
||||
sudo reboot
|
||||
end
|
||||
|
||||
function log -a message level
|
||||
if test "$level" = head
|
||||
echo "
|
||||
###########################################################################################
|
||||
#
|
||||
#--> $message"
|
||||
else if test "$level" = tail
|
||||
echo "#
|
||||
#--> $message
|
||||
#
|
||||
###########################################################################################
|
||||
"
|
||||
else
|
||||
echo -e "#\n#--> $message"
|
||||
end
|
||||
function log -a message
|
||||
echo \n"---------------- $message ----------------"\n
|
||||
end
|
||||
|
||||
main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue