Eevan |
|
| Allora. Io ho capito che le distro vanno create assolutamente solo da root, da superutente. quindi qualsiasi cosa fate, programma aprite eccetera mettete sudo davanti. consiglio di far partire la distro con "sudo startx". poi dovremmo installare uno script post installazione, io guardando in internet ho trovato questo da sistemare: CODICE #!/bin/bash
RESUME_LOG="/var/tmp/post_install"
# Figure out resume point if [ -r "$RESUME_LOG" -a "$1" = '--resume' ]; then RESUME_POINT=`cat $RESUME_LOG` else RESUME_POINT=0 fi
function perform_action { if [ ! $1 -lt $RESUME_POINT ]; then echo $1 > $RESUME_LOG action_$1 if [ $? -ne 0 ]; then echo "Action $1 failed" exit 1 fi fi }
function action_1 { echo "Configuring networking" }
function action_2 { echo "Installing something complicated" return 1 }
function action_3 { echo "Moving /home to its own disk partition" }
function action_4 { echo "Rebooting" }
mkdir -p `dirname $RESUME_LOG` rm -f $RESUME_LOG
# ##################################### # Do some stuff perform_action 1 perform_action 2 perform_action 3 perform_action 4 # #####################################
rm -f $RESUME_LOGShould something go wrong, invoking the script with ora andrebbe capito.
|
| |