vfs: check userland buffers before reading them.
[haiku.git] / 3rdparty / mmu_man / scripts / QuickConfig.sh
blob92320186d5a51e8b423eff6ccfa137631d6ce83e
1 #!/bin/sh
3 notice () {
4 notify --messageID QC$$ --type information \
5 --icon /boot/system/apps/Installer \
6 --title "Update" \
7 "$@"
8 echo "$@"
11 notice "Generating new SSH keys..."
13 SETTINGSSSHDIR=`finddir B_COMMON_SETTINGS_DIRECTORY`/ssh
14 hostKeyDir=${SETTINGSSSHDIR}
15 trash $hostKeyDir/ssh_host_*key*
16 /system/boot/post-install/sshd_keymaker.sh
18 notice "Please set your prefered locale…"
20 Locale
22 notice "Please set your prefered keymap…"
24 Keymap
26 notice "Please set your prefered editor…"
28 case `alert "Which editor do you want by default?" "Pe" "vim" "nano"` in
29 Pe)
30 echo 'export EDITOR=lpe' >> ~/.profile
32 vim)
33 echo 'export EDITOR=vim' >> ~/.profile
35 nano|*)
36 echo 'export EDITOR=nano' >> ~/.profile
38 esac
41 notice "Please fill in your name and email address for git commits…"
43 EDITOR=lpe git config --global -e
45 notice "Please fill in your name and email address for packaging…"
47 lpe ~/config/settings/haikuports.conf