Changeset 1973a80 in freewrt
- Timestamp:
- Jul 23, 2007, 6:24:37 PM (18 years ago)
- Children:
- 744f4a4
- Parents:
- dafde95
- Files:
-
- 4 added
- 7 edited
- 1 moved
-
package/base-files/Makefile (modified) (1 diff)
-
package/base-files/files/etc/preinit (modified) (2 diffs)
-
target/image/balls.mk (moved) (moved from target/image/initramfs.mk ) (2 diffs)
-
target/image/brcm/Makefile (modified) (4 diffs)
-
target/image/common.mk (modified) (1 diff)
-
target/image/rb/Makefile (modified) (4 diffs)
-
target/image/x86/Makefile (modified) (3 diffs)
-
target/linux/brcm-2.4/asus-wl500g/files/etc/preinit.arch (modified) (1 diff)
-
target/linux/rb-2.4/files/dev/MAKEDEV (added)
-
target/linux/rb-2.6/files/dev/MAKEDEV (added)
-
target/linux/x86-2.4/files/dev/MAKEDEV (added)
-
target/linux/x86-2.6/files/dev/MAKEDEV (added)
Legend:
- Unmodified
- Added
- Removed
-
package/base-files/Makefile
rdafde95 r1973a80 10 10 PKG_NAME:= base-files 11 11 PKG_VERSION:= 1.1 12 PKG_RELEASE:= 1912 PKG_RELEASE:= 20 13 13 WRKDIST= ${WRKDIR}/base-files 14 14 NO_DISTFILES:= 1 -
package/base-files/files/etc/preinit
rdafde95 r1973a80 1 #!/bin/ sh1 #!/bin/mksh 2 2 export PATH=/bin:/sbin:/usr/bin:/usr/sbin 3 3 4 failsafe() { 4 mount -nt proc proc /proc 5 if [[ ! -e /dev/null ]]; then 6 mount -no remount,rw / 7 # values hard-coded for Linux 8 mknod -m 0666 /dev/null c 1 3 9 mknod -m 0666 /dev/tty c 5 0 10 mknod -m 0622 /dev/console c 5 1 11 # switch to the real console (if possible) 12 exec 0<>/dev/console >&0 2>&0 13 print Notice: opened initial console now. 14 # do the deed 15 [[ -e /dev/MAKEDEV ]] && mksh /dev/MAKEDEV all 16 fi 17 18 function failsafe { 5 19 netmsg 192.168.1.255 "Entering Failsafe!" 6 20 telnetd … … 8 22 } 9 23 10 mount proc /proc -t proc11 24 [ -f /etc/preinit.arch ] && . /etc/preinit.arch 12 25 [ -f /proc/diag/led/power ] && echo 1 > /proc/diag/led/power -
target/image/balls.mk
rdafde95 r1973a80 6 6 7 7 INITRAMFS= ${FWRT_PREFIX}-${DEVICE}-${BOARD}-${KERNEL}-${FS}.cpio.gz 8 ROOTFSTARBALL= ${FWRT_PREFIX}-${DEVICE}-${BOARD}-${KERNEL}-${FS}.tar.gz 8 9 9 10 ifeq (${FS},initramfs) … … 13 14 endif 14 15 15 ${BIN_DIR}/${INITRAMFS}: 16 cd ${KDIR}/root; if [[ -e instprep.sh ]]; then \ 17 ${MBSH} instprep.sh; \ 18 rm -f instprep.sh; \ 19 fi; find . | sed -n '/^\.\//s///p' | sort | \ 16 ${BIN_DIR}/${INITRAMFS}: ${KDIR}/root 17 cd ${KDIR}/root; find . | sed -n '/^\.\//s///p' | sort | \ 20 18 ${LBIN_DIR}/cpio -oC512 -Mdist -Hsv4crc | gzip -n9 >$@ 19 20 ${BIN_DIR}/${ROOTFSTARBALL}: ${KDIR}/root 21 cd ${KDIR}/root; find . | sed -n '/^\.\//s///p' | sort | \ 22 ${LBIN_DIR}/cpio -oC512 -Mdist -Hustar | gzip -n9 >$@ -
target/image/brcm/Makefile
rdafde95 r1973a80 6 6 7 7 include $(TOPDIR)/rules.mk 8 include ../balls.mk 8 9 9 10 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD) … … 11 12 ifeq ($(FS),nfs) 12 13 INSTPREPSCRIPT = instprep.sh 13 ROOTFSTARBALL = $(FWRT_PREFIX)-$(DEVICE)-$(BOARD)-$(KERNEL)-$(FS).tar.gz14 14 NFS_DOC_URL = https://www.freewrt.org/trac/wiki/Documentation/Filesystems/NFS 15 15 … … 27 27 28 28 $(KDIR)/root: install-prepare kernel-install 29 30 $(BIN_DIR)/$(ROOTFSTARBALL): $(KDIR)/root31 (cd $(KDIR)/root ; tar cf - * | gzip -9 > $(BIN_DIR)/$(ROOTFSTARBALL))32 29 33 30 install: $(BIN_DIR)/$(ROOTFSTARBALL) … … 225 222 endif 226 223 227 ifneq ($(strip ${FWRT_LINUX_2_6}),)228 include ../initramfs.mk229 endif230 224 include ${TOPDIR}/target/image/common.mk -
target/image/common.mk
rdafde95 r1973a80 61 61 li=$$inode; \ 62 62 done 63 chmod 4 111 ${KDIR}/root/bin/busybox63 chmod 4511 ${KDIR}/root/bin/busybox 64 64 chmod 1777 ${KDIR}/root/tmp 65 65 # Ok, we can flash _that_ now. -
target/image/rb/Makefile
rdafde95 r1973a80 6 6 7 7 include $(TOPDIR)/rules.mk 8 include ../balls.mk 8 9 9 10 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD) 10 11 11 12 INSTPREPSCRIPT = instprep.sh 12 ROOTFSTARBALL = $(FWRT_PREFIX)-$(DEVICE)-$(BOARD)-$(KERNEL)-$(FS).tar.gz13 13 NFS_DOC_URL = https://www.freewrt.org/trac/wiki/Documentation/Filesystems/NFS 14 14 CF_DOC_URL = https://www.freewrt.org/trac/wiki/Documentation/Filesystems/CompactFlash … … 23 23 install -m 0755 $(BUILD_DIR)/linux/vmlinux $(KDIR)/root/kernel 24 24 25 install-prepare_DEPS+= instprep-script install-prepare 25 ifeq ($(strip ${FWRT_TARGET_NOKERNEL})$(strip ${FWRT_TARGET_ROOTFS_INITRAMFS}),) 26 install-prepare_DEPS+= instprep-script 27 endif 28 install-prepare_DEPS+= install-prepare 26 29 ifeq ($(strip ${FWRT_TARGET_NOKERNEL})$(strip ${FWRT_TARGET_ROOTFS_INITRAMFS}),) 27 30 install-prepare_DEPS+= kernel-install … … 32 35 33 36 $(KDIR)/root: install-prepare kernel-install 34 35 $(BIN_DIR)/$(ROOTFSTARBALL): $(KDIR)/root36 (cd $(KDIR)/root ; tar cf - * | gzip -9 > $(BIN_DIR)/$(ROOTFSTARBALL))37 37 38 38 ifeq ($(FS),nfs) … … 92 92 endif 93 93 94 ifneq ($(strip ${FWRT_LINUX_2_6}),)95 include ../initramfs.mk96 endif97 94 include ${TOPDIR}/target/image/common.mk -
target/image/x86/Makefile
rdafde95 r1973a80 6 6 7 7 include $(TOPDIR)/rules.mk 8 include ../balls.mk 8 9 9 10 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD) 10 11 11 12 INSTPREPSCRIPT = instprep.sh 12 ROOTFSTARBALL = $(FWRT_PREFIX)-$(DEVICE)-$(BOARD)-$(KERNEL)-$(FS).tar.gz13 13 CF_DOC_URL = https://www.freewrt.org/trac/wiki/Documentation/Filesystems/CompactFlash 14 14 … … 28 28 29 29 $(KDIR)/root: install-prepare kernel-install 30 31 $(BIN_DIR)/$(ROOTFSTARBALL): $(KDIR)/root instprep-script32 (cd $(KDIR)/root ; tar cf - * | gzip -9 > $(BIN_DIR)/$(ROOTFSTARBALL))33 30 34 31 ifeq ($(FS),ext2-cf) … … 50 47 endif 51 48 52 ifneq ($(strip ${FWRT_LINUX_2_6}),)53 include ../initramfs.mk54 endif55 49 include ${TOPDIR}/target/image/common.mk -
target/linux/brcm-2.4/asus-wl500g/files/etc/preinit.arch
rdafde95 r1973a80 4 4 5 5 dd if=/dev/console of=/dev/null bs=1 count=0 >/dev/null 2>&1 || \ 6 exec <>/dev/pty/m0 >&0 2>&06 exec 0<>/dev/pty/m0 >&0 2>&0 7 7 insmod diag
Note:
See TracChangeset
for help on using the changeset viewer.
