source: debwrt/trunk/debian/rootfs/files/usr/sbin/PostInstall @ 257

Last change on this file since 257 was 257, checked in by stappers, 8 years ago

PostInstall can remove /etc/init.d/rcS.debian

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2#
3# PostInstall
4# to complete the installation
5# original mostly a wrapper for second stage debootstrap
6#
7# Copyright (C) 2011  Geert Stappers  <stappers@stappers.nl>
8# Licenced GNU General Public License v2
9#
10
11if [ -x /debootstrap/debootstrap ] ; then
12  echo FYI: Running second stage of debootstap, which does take some time 
13  /debootstrap/debootstrap --second-stage
14  rm -rf /var/cache/apt/archives
15  mkdir -p /var/cache/apt/archives/partial
16else
17  echo No debootstrap executable found, assuming "second stage" is allready done
18  # exit 0
19fi 
20
21if [ -f /etc/init.d/rcS ] ; then
22  # the symbolic link to /etc/init.d/rcS.firstboot is gone
23  if [ $( diff /etc/init.d/rcS /etc/init.d/rcS.debian 2>&1 | wc -l ) -gt 0 ]
24  then
25    : # do nothing
26  else
27    # they are equal
28    rm /etc/init.d/rcS.debian
29  fi
30fi
31
32if [ -d /lib/modules/$( uname -r ) ] ; then
33  : # most likely are the kernel modules available in the root file system
34else
35  cat << HERE
36
37Warning: Kernel modules top directory /lib/modules/$( uname -r ) NOT found!
38  See /lib/modules/debwrt.README for more information.
39
40HERE
41fi
42
43if [ -x /usr/sbin/in.telnetd ] ; then
44  echo Warning: telnet daemon programm found, consider uninstalling it.
45  echo
46fi
47
48# FYI: This program did NOT check NOR setup network switch configuration
49
50echo 'Minor reminider: run `dpkg-reconfigure locales`'
51echo
52
53# l l
Note: See TracBrowser for help on using the repository browser.