| Line 1... |
Line 1... |
| 1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
| 2 |
# $Id: alcasar.sh 842 2012-03-19 21:26:52Z richard $
|
2 |
# $Id: alcasar.sh 845 2012-03-29 21:17:03Z richard $
|
| 3 |
|
3 |
|
| 4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
| 5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
| 6 |
# This script is distributed under the Gnu General Public License (GPL)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
| 7 |
|
7 |
|
| Line 1387... |
Line 1387... |
| 1387 |
post_install()
|
1387 |
post_install()
|
| 1388 |
{
|
1388 |
{
|
| 1389 |
# adaptation du script "chien de garde" (watchdog)
|
1389 |
# adaptation du script "chien de garde" (watchdog)
|
| 1390 |
$SED "s?^EXTIF=.*?EXTIF=\"$EXTIF\"?g" $DIR_DEST_BIN/alcasar-watchdog.sh
|
1390 |
$SED "s?^EXTIF=.*?EXTIF=\"$EXTIF\"?g" $DIR_DEST_BIN/alcasar-watchdog.sh
|
| 1391 |
$SED "s?^INTIF=.*?INTIF=\"$INTIF\"?g" $DIR_DEST_BIN/alcasar-watchdog.sh
|
1391 |
$SED "s?^INTIF=.*?INTIF=\"$INTIF\"?g" $DIR_DEST_BIN/alcasar-watchdog.sh
|
| 1392 |
$SED "s?^PRIVATE_IP=.*?PRIVATE_IP=\"$PRIVATE_IP\"?g" $DIR_DEST_BIN/alcasar-watchdog.sh
|
- |
|
| 1393 |
# création de la bannière locale
|
1392 |
# création de la bannière locale
|
| 1394 |
[ -e /etc/mandriva-release.default ] || cp /etc/mandriva-release /etc/mandriva-release.default
|
1393 |
[ -e /etc/mandriva-release.default ] || cp /etc/mandriva-release /etc/mandriva-release.default
|
| 1395 |
cp -f $DIR_CONF/banner /etc/mandriva-release
|
1394 |
cp -f $DIR_CONF/banner /etc/mandriva-release
|
| 1396 |
echo " V$VERSION" >> /etc/mandriva-release
|
1395 |
echo " V$VERSION" >> /etc/mandriva-release
|
| 1397 |
# création de la bannière SSH
|
1396 |
# création de la bannière SSH
|