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

Last change on this file since 880 was 880, checked in by amain, 3 years ago

rootfs: several minor fixes

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