version 1.1.1.1.2.1, 2011/07/19 21:54:27
|
version 1.2.4.5, 2012/02/16 10:05:34
|
Line 65 LIBS += -L${WORLD}/lib -L${WORLD}/usr/lib
|
Line 65 LIBS += -L${WORLD}/lib -L${WORLD}/usr/lib
|
_EOF |
_EOF |
cat >$ROOTFS_CONF <<_EOF |
cat >$ROOTFS_CONF <<_EOF |
srcdirs ${BSDSRC}/bin ${BSDSRC}/sbin ${BSDSRC}/libexec ${BSDSRC}/cddl/sbin ${BSDSRC}/sbin/ggate |
srcdirs ${BSDSRC}/bin ${BSDSRC}/sbin ${BSDSRC}/libexec ${BSDSRC}/cddl/sbin ${BSDSRC}/sbin/ggate |
|
srcdirs ${BSDSRC}/usr.bin ${BSDSRC}/usr.sbin ${BSDSRC}/usr.sbin/wpa |
|
|
#buildopts -DRESCUE CRUNCH_CFLAGS=-DRESCUE TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} MAKEOBJDIRPREFIX=${BSDOBJ} |
#buildopts -DRESCUE CRUNCH_CFLAGS=-DRESCUE TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} MAKEOBJDIRPREFIX=${BSDOBJ} |
buildopts TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} MAKEOBJDIRPREFIX=${BSDOBJ} |
buildopts TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} MAKEOBJDIRPREFIX=${BSDOBJ} |
_EOF |
_EOF |
Line 98 build_rootdir()
|
Line 100 build_rootdir()
|
install -d system; |
install -d system; |
install -d -m 1777 tmp; |
install -d -m 1777 tmp; |
install -d usr; |
install -d usr; |
|
install -d usr/bin; |
|
install -d usr/lib; |
|
install -d usr/libexec; |
|
install -d usr/sbin; |
install -d var; |
install -d var; |
|
|
ln -fs /usr/lib lib; |
ln -fs /usr/lib lib; |
Line 117 install_rootfs()
|
Line 123 install_rootfs()
|
PRG="/sbin/elwix" |
PRG="/sbin/elwix" |
BIN="${ROOTFS}/bin" |
BIN="${ROOTFS}/bin" |
SBIN="${ROOTFS}/sbin" |
SBIN="${ROOTFS}/sbin" |
|
UBIN="${ROOTFS}/usr/bin" |
|
LIBEXEC="${ROOTFS}/usr/libexec" |
|
USBIN="${ROOTFS}/usr/sbin" |
ETC="${ROOTFS}/elwix/etc" |
ETC="${ROOTFS}/elwix/etc" |
|
|
echo "+++ Install ELWIX into RootFS directory ..." |
echo "+++ Install ELWIX into RootFS directory ..." |
Line 124 install_rootfs()
|
Line 133 install_rootfs()
|
|
|
InstallList ${ELWIX_ROOTFS} ${WORLD} ${ROOTFS} |
InstallList ${ELWIX_ROOTFS} ${WORLD} ${ROOTFS} |
|
|
InstallFiles ${ROOTFS_ETC} $ETC | InstallDir ${ROOTFS_ETC} $ETC |
|
|
ln -s /usr/sbin/nologin $SBIN | # ln -s /usr/sbin/nologin $SBIN |
|
|
ln -s $PRG $BIN/test |
ln -s $PRG $BIN/test |
ln -s $PRG $BIN/\[ |
ln -s $PRG $BIN/\[ |
Line 135 install_rootfs()
|
Line 144 install_rootfs()
|
ln -s $PRG $BIN/chio |
ln -s $PRG $BIN/chio |
ln -s $PRG $BIN/chmod |
ln -s $PRG $BIN/chmod |
ln -s $PRG $BIN/cp |
ln -s $PRG $BIN/cp |
ln -s $PRG $BIN/csh | # ln -s $PRG $BIN/csh |
ln -s $PRG $BIN/tcsh | # ln -s $PRG $BIN/tcsh |
| ln -s /bin/tcsh $BIN/-tcsh |
| ln -s /bin/csh $BIN/-csh |
ln -s $PRG $BIN/date |
ln -s $PRG $BIN/date |
ln -s $PRG $BIN/dd |
ln -s $PRG $BIN/dd |
ln -s $PRG $BIN/df |
ln -s $PRG $BIN/df |
Line 157 install_rootfs()
|
Line 168 install_rootfs()
|
ln -s $PRG $BIN/pgrep |
ln -s $PRG $BIN/pgrep |
ln -s $PRG $BIN/sh |
ln -s $PRG $BIN/sh |
ln -s $PRG $BIN/-sh |
ln -s $PRG $BIN/-sh |
ln -s $PRG $BIN/-tcsh |
|
ln -s $PRG $BIN/ps |
ln -s $PRG $BIN/ps |
ln -s $PRG $BIN/pwait |
ln -s $PRG $BIN/pwait |
ln -s $PRG $BIN/pwd |
ln -s $PRG $BIN/pwd |
Line 171 install_rootfs()
|
Line 181 install_rootfs()
|
ln -s $PRG $BIN/sync |
ln -s $PRG $BIN/sync |
ln -s $PRG $BIN/uuidgen |
ln -s $PRG $BIN/uuidgen |
|
|
|
ln -s $PRG $BIN/true |
|
ln -s $PRG $BIN/false |
|
ln -s $PRG $BIN/basename |
|
ln -s $PRG $BIN/tail |
|
ln -s $PRG $BIN/nc |
|
ln -s $PRG $BIN/w |
|
ln -s $PRG $BIN/head |
|
ln -s $PRG $BIN/uname |
|
ln -s $PRG $BIN/tset |
|
ln -s $PRG $BIN/vmstat |
|
ln -s $PRG $BIN/systat |
|
ln -s $PRG $BIN/tput |
|
ln -s $PRG $BIN/grep |
|
ln -s $PRG $BIN/awk |
|
ln -s $PRG $BIN/less |
|
ln -s $PRG $BIN/gzip |
|
ln -s $PRG $BIN/cap_mkdb |
|
ln -s $PRG $BIN/sed |
|
ln -s $PRG $BIN/vi |
|
ln -s $PRG $BIN/du |
|
ln -s $PRG $BIN/getopt |
|
ln -s $PRG $BIN/logger |
|
ln -s $PRG $BIN/nice |
|
ln -s $PRG $BIN/nohup |
|
ln -s $PRG $BIN/seq |
|
ln -s $PRG $BIN/sockstat |
|
ln -s $PRG $BIN/stat |
|
ln -s $PRG $BIN/tee |
|
ln -s $PRG $BIN/tftp |
|
ln -s $PRG $BIN/touch |
|
ln -s $PRG $BIN/wc |
|
ln -s $PRG $BIN/xargs |
|
ln -s $PRG $BIN/printenv |
|
ln -s $PRG $BIN/egrep |
|
ln -s $PRG $BIN/fgrep |
|
ln -s $PRG $BIN/tar |
|
ln -s $PRG $BIN/cpio |
|
ln -s $PRG $BIN/nawk |
|
ln -s $PRG $BIN/gunzip |
|
ln -s $PRG $BIN/more |
|
ln -s $PRG $BIN/reset |
|
ln -s $PRG $BIN/readlink |
|
ln -s $PRG $BIN/uptime |
|
|
ln -s $PRG $SBIN/adjkerntz |
ln -s $PRG $SBIN/adjkerntz |
ln -s $PRG $SBIN/atacontrol |
ln -s $PRG $SBIN/atacontrol |
ln -s $PRG $SBIN/badsect |
ln -s $PRG $SBIN/badsect |
Line 236 install_rootfs()
|
Line 290 install_rootfs()
|
ln -s $PRG $SBIN/nfsiod |
ln -s $PRG $SBIN/nfsiod |
ln -s $PRG $SBIN/nos-tun |
ln -s $PRG $SBIN/nos-tun |
ln -s $PRG $SBIN/pfctl |
ln -s $PRG $SBIN/pfctl |
ln -s $PRG $SBIN/pflogd |
|
ln -s $PRG $SBIN/ping |
ln -s $PRG $SBIN/ping |
ln -s $PRG $SBIN/ping6 |
ln -s $PRG $SBIN/ping6 |
|
ln -s $PRG $SBIN/pflogd |
ln -s $PRG $SBIN/quotacheck |
ln -s $PRG $SBIN/quotacheck |
ln -s $PRG $SBIN/reboot |
ln -s $PRG $SBIN/reboot |
ln -s $PRG $SBIN/halt |
ln -s $PRG $SBIN/halt |
Line 249 install_rootfs()
|
Line 303 install_rootfs()
|
ln -s $PRG $SBIN/rrestore |
ln -s $PRG $SBIN/rrestore |
ln -s $PRG $SBIN/route |
ln -s $PRG $SBIN/route |
ln -s $PRG $SBIN/rtsol |
ln -s $PRG $SBIN/rtsol |
|
ln -s $PRG $SBIN/shutdown |
ln -s $PRG $SBIN/savecore |
ln -s $PRG $SBIN/savecore |
ln -s $PRG $SBIN/setkey |
ln -s $PRG $SBIN/setkey |
ln -s $PRG $SBIN/shutdown |
|
ln -s $PRG $SBIN/spppcontrol |
ln -s $PRG $SBIN/spppcontrol |
ln -s $PRG $SBIN/swapon |
ln -s $PRG $SBIN/swapon |
ln -s $PRG $SBIN/swapoff |
ln -s $PRG $SBIN/swapoff |
Line 262 install_rootfs()
|
Line 316 install_rootfs()
|
ln -s $PRG $SBIN/zfs |
ln -s $PRG $SBIN/zfs |
ln -s $PRG $SBIN/zpool |
ln -s $PRG $SBIN/zpool |
|
|
|
ln -s $PRG $SBIN/traceroute |
|
ln -s $PRG $SBIN/traceroute6 |
|
ln -s $PRG $SBIN/chown |
|
ln -s $PRG $SBIN/pwd_mkdb |
|
ln -s $PRG $SBIN/arp |
|
ln -s $PRG $SBIN/gpioctl |
|
ln -s $PRG $SBIN/hostapd |
|
ln -s $PRG $SBIN/hostapd_cli |
|
ln -s $PRG $SBIN/wpa_supplicant |
|
ln -s $PRG $SBIN/wpa_cli |
|
ln -s $PRG $SBIN/wpa_passphrase |
|
ln -s $PRG $SBIN/wake |
|
ln -s $PRG $SBIN/watchdog |
|
ln -s $PRG $SBIN/watchdogd |
|
ln -s $PRG $SBIN/inetd |
|
ln -s $PRG $SBIN/wlandebug |
|
ln -s $PRG $SBIN/chroot |
|
ln -s $PRG $SBIN/i2c |
|
ln -s $PRG $SBIN/iostat |
|
ln -s $PRG $SBIN/jail |
|
ln -s $PRG $SBIN/jexec |
|
ln -s $PRG $SBIN/jls |
|
ln -s $PRG $SBIN/ndp |
|
ln -s $PRG $SBIN/newsyslog |
|
ln -s $PRG $SBIN/nologin |
|
ln -s $PRG $SBIN/pstat |
|
ln -s $PRG $SBIN/rtadvctl |
|
ln -s $PRG $SBIN/rtadvd |
|
ln -s $PRG $SBIN/rtsold |
|
ln -s $PRG $SBIN/syslogd |
|
ln -s $PRG $SBIN/setfib |
|
ln -s $PRG $SBIN/swapinfo |
|
ln -s $PRG $SBIN/chgrp |
|
|
|
ln -s $PRG $LIBEXEC/getty |
|
ln -s $PRG $LIBEXEC/tftpd |
|
|
chown -hR root:wheel $ROOTFS |
chown -hR root:wheel $ROOTFS |
|
|
|
echo "+++ ELWIX clean CVS tags ..." |
|
CleanCVS $ETC |
|
CleanCVS $ETC/etc |
} |
} |
|
|
build_image() |
build_image() |
Line 296 if SnitVer ${WORLD}/elwix.ver; then
|
Line 391 if SnitVer ${WORLD}/elwix.ver; then
|
build_rootdir |
build_rootdir |
install_rootfs |
install_rootfs |
|
|
build_image | build_image && install_image |
install_image | |
else |
else |
echo "Skipped ELWIX RootFS build ..." |
echo "Skipped ELWIX RootFS build ..." |
fi |
fi |