1#!/bin/sh 2 3notice () { 4 notify --messageID QC$$ --type information \ 5 --icon /boot/system/apps/Installer \ 6 --title "Update" \ 7 "$@" 8 echo "$@" 9} 10 11notice "Generating new SSH keys..." 12 13SETTINGSSSHDIR=`finddir B_COMMON_SETTINGS_DIRECTORY`/ssh 14hostKeyDir=${SETTINGSSSHDIR} 15trash $hostKeyDir/ssh_host_*key* 16/system/boot/post-install/sshd_keymaker.sh 17 18notice "Please set your prefered locale…" 19 20Locale 21 22notice "Please set your prefered keymap…" 23 24Keymap 25 26notice "Please set your prefered editor…" 27 28case `alert "Which editor do you want by default?" "Pe" "vim" "nano"` in 29 Pe) 30 echo 'export EDITOR=lpe' >> ~/.profile 31 ;; 32 vim) 33 echo 'export EDITOR=vim' >> ~/.profile 34 ;; 35 nano|*) 36 echo 'export EDITOR=nano' >> ~/.profile 37 ;; 38esac 39 40 41notice "Please fill in your name and email address for git commits…" 42 43EDITOR=lpe git config --global -e 44 45notice "Please fill in your name and email address for packaging…" 46 47lpe ~/config/settings/haikuports.conf 48