/[fai]/trunk/examples/simple/scripts/LAST
ViewVC logotype

Contents of /trunk/examples/simple/scripts/LAST

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1906 - (show annotations) (download)
Tue Jul 15 09:27:22 2003 UTC (9 years, 10 months ago) by lange
File size: 997 byte(s)
moved simple examples to new dir
1 #! /bin/sh
2
3 # copyright Thomas Lange 2001-2003, lange@debian.org
4
5 # generate locales on client
6 $ROOTCMD dpkg-reconfigure -u locales
7
8 # remove backup files from cfeninge
9 dirs="root etc var"
10 for path in $dirs; do
11 find $target/$path -maxdepth 20 -name \*.cfedited -o -name \*.cfsaved | xargs -r rm
12 done
13
14 # if no separate /tmp partition exists, make link /tmp -> /var/tmp
15 ifclass TMP_PARTITION || {
16 rm -rf $target/tmp
17 ln -s /var/tmp $target/tmp
18 }
19
20 [ "$FAI_DEBMIRROR" ] &&
21 echo "#$FAI_DEBMIRROR $MNTPOINT nfs ro 0 0" >> $target/etc/fstab
22
23 # set bios clock
24 case "$UTC" in
25 no|"") hwopt="--localtime" ;;
26 yes) hwopt="--utc" ;;
27 esac
28 $ROOTCMD hwclock $hwopt --systohc
29
30 # Make sure everything is configured properly
31 echo "Running \"apt-get -f install\" for the last time."
32 $ROOTCMD apt-get -f install
33
34 # copy sources.list forall and update apt-list at next boot
35 fcopy /etc/apt/sources.list /etc/rc2.d/S99aptupdate
36
37 # the system is now configured
38 rm -f $target/sbin/unconfigured.sh

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5