blob: a9b81a0ef7b0bfbcda9b62e2a92c73bb63ade770 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Copyright (C) 2010 One Laptop Per Child
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.
. $OOB__shlib
oIFS=$IFS
IFS=$'\n'
for line in $(env); do
[[ "${line:0:34}" == "CFG_custom_scripts__custom_script_" ]] || continue
script=${line#*=}
echo "echo 'Executing custom script $script'"
echo "export oob_config_dir=\"$oob_config_dir\""
echo "[ -x \"$script\" ] && \"$script\" || bash \"$script\""
done
IFS=$oIFS
|