12 lines
352 B
Bash
12 lines
352 B
Bash
|
#!/bin/bash
|
||
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||
|
source "$(dirname -- "$0")/../load.sh" || exit 1
|
||
|
|
||
|
[ "$(id -u)" -eq 0 ] || die "Ce script doit être lancé avec les droits root"
|
||
|
|
||
|
cd "$MYDIR/.."
|
||
|
[ -n "$1" ] && dest="$1" || dest="$(pwd)"
|
||
|
|
||
|
estep "Maj /etc/nucore.sh"
|
||
|
sed "s|@@""dest""@@|$dest|g" load.sh >/etc/nucore.sh
|