source: trunk/debian/rootfs/files/all/etc/init.d/rcS.firstboot

Last change on this file was 913, checked in by amain, 6 years ago

rootfs: octeon-native update

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/sh
2
3export PATH=/bin:/usr/bin:/sbin:/usr/sbin
4
5# Mount root read-write
6/bin/mount -n -o remount,rw /
7
8# Mount proc - why not? :-)
9/bin/mount -t proc none /proc
10
11# Mount sys
12mount -t sysfs none /sys
13
14# Setup the network
15/sbin/ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up
16/sbin/ifconfig eth0:1 192.168.1.20 netmask 255.255.255.0 up
17
18# Mount devpts to allow telnet and ssh logins
19/bin/mkdir -p /dev/pts/
20/bin/mount -t devpts none /dev/pts/
21
22# Run telnetd in background
23while true; do /usr/sbin/in.telnetd -debug 23; /bin/sleep 1; done&
24
25# Run SSHd in background - nice scp-ing
26/usr/sbin/sshd -D &
27
28# Setting hostnams
29/bin/hostname `cat /etc/hostname`
30
31# Run bash instead of normal boot procedure
32/bin/echo
33/bin/echo "Welcome to the DebWrt post installation!"
34/bin/echo
35/bin/echo "Press ctrl-d for normal boot. Use vim.tiny to edit files."
36/bin/echo
37/bin/echo "Note that both telnetd and sshd are running on: 192.168.1.1 and on 192.168.1.20."
38/bin/echo
39/bin/echo "Run /usr/sbin/PostInstall to complete the second stage installation"
40
41# Start bash
42/bin/bash
43
44# Normal boot procedure
45exec /etc/init.d/rc S
Note: See TracBrowser for help on using the repository browser.