time, network configs

This commit is contained in:
Jules Winnfield 2014-01-26 09:15:13 +01:00
parent 04938faa17
commit 8d8b8698f6

View file

@ -229,7 +229,9 @@ echo cubian-firstrun > $DEST/output/sdcard/etc/rc.locale
# install and configure locales for Germany # install and configure locales for Germany
echo LANG='$DEST_LANG'.UTF-8 > $DEST/output/sdcard/etc/default.conf echo LANG='$DEST_LANG'.UTF-8 > $DEST/output/sdcard/etc/default.conf
echo KEYMAP=de-latin1-nodeadkeys > $DEST/output/sdcard/etc/vconsole.conf echo KEYMAP=de-latin1-nodeadkeys > $DEST/output/sdcard/etc/vconsole.conf
ln -s /usr/share/zoneinfo/Europe/Berlin $DEST/output/sdcard/etc/localtime #use this command when System runs
# timedatectl set-timezone Europe/Berlin
#ln -s /usr/share/zoneinfo/Europe/Berlin $DEST/output/sdcard/etc/localtime
#chroot $DEST/output/sdcard /bin/bash -c "pacman -S locales" #chroot $DEST/output/sdcard /bin/bash -c "pacman -S locales"
# reconfigure locales # reconfigure locales
#echo -e $DEST_LANG'.UTF-8 UTF-8\n' > $DEST/output/sdcard/etc/locale.gen #echo -e $DEST_LANG'.UTF-8 UTF-8\n' > $DEST/output/sdcard/etc/locale.gen
@ -239,7 +241,7 @@ ln -s /usr/share/zoneinfo/Europe/Berlin $DEST/output/sdcard/etc/localtime
#chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y install git hostapd dosfstools htop openssh-server ca-certificates module-init-tools dhcp3-client udev ifupdown iproute iputils-ping ntpdate ntp rsync usbutils uboot-envtools pciutils wireless-tools wpasupplicant procps libnl-dev parted cpufrequtils console-setup unzip bridge-utils" #chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y install git hostapd dosfstools htop openssh-server ca-certificates module-init-tools dhcp3-client udev ifupdown iproute iputils-ping ntpdate ntp rsync usbutils uboot-envtools pciutils wireless-tools wpasupplicant procps libnl-dev parted cpufrequtils console-setup unzip bridge-utils"
#chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y upgrade" #chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y upgrade"
# configure MIN / MAX Speed for cpufrequtils # configure MIN / MAX Speed for cpufrequtils change that with cpufrequ-set or with the /boot/config.fex
#sed -e 's/MIN_SPEED="0"/MIN_SPEED="480000"/g' -i $DEST/output/sdcard/etc/init.d/cpufrequtils #sed -e 's/MIN_SPEED="0"/MIN_SPEED="480000"/g' -i $DEST/output/sdcard/etc/init.d/cpufrequtils
#sed -e 's/MAX_SPEED="0"/MAX_SPEED="1010000"/g' -i $DEST/output/sdcard/etc/init.d/cpufrequtils #sed -e 's/MAX_SPEED="0"/MAX_SPEED="1010000"/g' -i $DEST/output/sdcard/etc/init.d/cpufrequtils
#overclocked #overclocked
@ -248,15 +250,13 @@ ln -s /usr/share/zoneinfo/Europe/Berlin $DEST/output/sdcard/etc/localtime
# i recommend you to change this urgently!!! # i recommend you to change this urgently!!!
# set password to 1234 # set password to 1234
#chroot $DEST/output/sdcard /bin/bash -c "(echo 1234;echo 1234;) | passwd root" #echo 1234;echo 1234; | passwd root
# set hostname # set hostname
echo cubie > $DEST/output/sdcard/etc/hostname echo cubie > $DEST/output/sdcard/etc/hostname
# load modules # load modules you may load them per sysctl
cat > $DEST/output/sdcard/etc/modules-load.d/cubieModules.conf cat > $DEST/output/sdcard/etc/modules-load.d/cubieModules.conf <<EOT >
cat <<EOT >> $DEST/output/sdcard/etc/modules-load.d/cubieModules.conf
hci_uart hci_uart
gpio_sunxi gpio_sunxi
bcmdhd bcmdhd
@ -264,9 +264,9 @@ bcmdhd
EOT EOT
# edit this to your personal needs/network configs # edit this to your personal needs/network configs take the ones from /etc/netctl/examples/ folder
# create interfaces configuration # create interfaces configuration
cat <<EOT >> $DEST/output/sdcard/etc/netctl/interfaces/eth0 cat > $DEST/output/sdcard/etc/netctl/interfaces/eth0 <<EOT >
auto eth0 auto eth0
allow-hotplug eth0 allow-hotplug eth0
iface eth0 inet dhcp iface eth0 inet dhcp
@ -275,7 +275,7 @@ iface eth0 inet dhcp
EOT EOT
cat <<EOT >> $DEST/output/sdcard/etc/netctl/interfaces/wlan0 cat > $DEST/output/sdcard/etc/netctl/interfaces/wlan0 <<EOT >
auto wlan0 auto wlan0
allow-hotplug wlan0 allow-hotplug wlan0
iface wlan0 inet dhcp iface wlan0 inet dhcp