# Wifi support
#WIFI_SUPPORT="no"
-#FIRMWARE_B43_LPPHY="yes"
+#B43_LPPHY="yes"
# Keyboard mapping (example: us, cf)
KEYBOARD="us"
DVDROM="no"
WIFI_SUPPORT="yes"
-FIRMWARE_B43_LPPHY="yes"
+B43_LPPHY="yes"
# General network settings
INTERFACES="eth0 wlan0"
ipkg ${SHADOW}
ipkg -m noac ${SYSKLOGD}
ipkg -m noac ${SYSVINIT}
-ipkg ${TAR_PACKAGE} "--bindir=/bin --libexecdir=/usr/sbin"
+FORCE_UNSAFE_CONFIGURE=1 ipkg ${TAR_PACKAGE} "--bindir=/bin --libexecdir=/usr/sbin"
ipkg ${TEXINFO}
ipkg ${UDEV}
ipkg -m noac ${UDEV_CONFIG}
PREFIX=/usr ipkg -m noac -s wireless-tools ${WIRELESS_TOOLS}
ipkg -m noac ${WPA_SUPPLICANT}
- if [ -n "${FIRMWARE_B43_LPPHY}" ]; then
+ if [ -n "${B43_LPPHY}" ]; then
PREFIX=/usr ipkg -m noac ${B43_FWCUTTER}
ipkg -m noac -s firmware-b43-lpphy ${FIRMWARE_B43_LPPHY}
fi
"http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux"
fpkg -e "tar.gz" ${WPA_SUPPLICANT} "http://hostap.epitest.fi/releases"
- if [ -n "${FIRMWARE_B43_LPPHY}" ]; then
+ if [ -n "${B43_LPPHY}" ]; then
fpkg ${B43_FWCUTTER} "http://bu3sch.de/b43/fwcutter"
fpkg ${FIRMWARE_B43_LPPHY} "http://downloads.openwrt.org/sources"
fi
hvbuild()
{
- # The kernel sources were already copied into /usr/src in stage0
- cd /usr/src/${PACKAGE}
- make mrproper
- make headers_check
+ # Check if kernel sources from stage0 are still there
+ if [ ! -d /usr/src/${PACKAGE} ]; then
+ # If no, then copy them. We don't install headers and
+ # assume that it is a new kernel version installation.
+ mv ${LFS_TMP}/${PACKAGE} /usr/src
+ else
+ # Install headers
+ cd /usr/src/${PACKAGE}
+ make mrproper
+ make headers_check
- # Remove any previous headers install
- rm -rf dest
- make INSTALL_HDR_PATH=dest headers_install
- cp -rv dest/include/* /usr/include
- find /usr/include -name .install -or -name ..install.cmd | xargs rm -fv
- rm -rf dest
+ # Remove any previous headers install
+ rm -rf dest
+ make INSTALL_HDR_PATH=dest headers_install
+ cp -rv dest/include/* /usr/include
+ find /usr/include -name .install -or -name ..install.cmd | xargs rm -fv
+ rm -rf dest
+ fi
# Install HV kernel compilation script:
VERSION=$(get_pkg_ver ${PACKAGE})
hvbuild_post()
{
- echo "TODO: Configurer ssid"
install -d -m755 /etc/sysconfig/network/ssid
+
+cat > /etc/sysconfig/network/ssid/TEMPLATE << EOF
+# This file must be named exactly as your ESSID (case is important)
+SSID="MYNETWORK-SSID"
+KEY_TYPE="WPA-PSK"
+
+# This can be "static" or "dhcp"
+BOOTPROTO="static"
+
+# The following variables are used only for "static":
+IPADDR="192.168.1.6"
+PREFIX_LENGTH="24"
+GATEWAY="192.168.1.1"
+EOF
}
install -m 644 doc/docbook/*8 /usr/man/man8
install -m 644 doc/docbook/wpa_supplicant.conf.5 /usr/man/man5
}
+
+hvbuild_post()
+{
+ # Create default wpa configuration file
+ cat > /etc/wpa_supplicant.conf << EOF
+ctrl_interface=/var/run/wpa_supplicant
+
+network={
+ ssid="insert your SSID here"
+ scan_ssid=1
+ key_mgmt=WPA-PSK
+ psk="insert your password here"
+}
+EOF
+}