Add service for configure system

master3.3
Mike Hiretsky 12 years ago
parent 8a95970c3d
commit 257d1176ec

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
depend() { depend() {
need localmount root fsck modules need localmount root fsck modules calculate-core
before keymaps consolefont dbus before keymaps consolefont dbus
use swap hostname use swap hostname
} }
@ -44,8 +44,7 @@ install_pkg()
variable_value() variable_value()
{ {
local varname=$1 local varname=$1
cl-install -vv --filter $varname | cl-core --variable install.$varname
sed -rn "s/^$varname\s+\[[rw]\]\s+(.*)$/\1/p"
} }
install_video_driver() install_video_driver()
@ -113,7 +112,7 @@ configure_users() {
start() { start() {
install_video_driver install_video_driver
LANG=C create_nonroot_user LANG=C create_nonroot_user
LANG=C /usr/bin/cl-install --startup --live LANG=C /usr/bin/cl-core --method configure_system --live
LANG=C configure_users LANG=C configure_users
/usr/sbin/env-update /usr/sbin/env-update
@ -126,9 +125,9 @@ start() {
stop() { stop() {
local roottype=`variable_value os_root_type` local roottype=`variable_value os_root_type`
if [[ $roottype == "hdd" ]] && rc-config list boot | grep -q calculate if [[ $roottype == "hdd" ]] && rc-config list boot | grep -q calculate-install
then then
rc-update del calculate boot rc-update del calculate-install boot
local distdir="/usr/portage/distfiles" local distdir="/usr/portage/distfiles"
[[ -d "${distdir}" ]] && [[ -n "`ls ${distdir}`" ]] && rm ${distdir}/* [[ -d "${distdir}" ]] && [[ -n "`ls ${distdir}`" ]] && rm ${distdir}/*
fi fi

@ -31,11 +31,11 @@ data_files = []
var_data_files = [] var_data_files = []
#data_files += [('/etc/init.d', ['data/calculate']), data_files += [('/etc/init.d', ['data/calculate']),
# ('/usr/bin',['data/xautologin']), ('/usr/bin',['data/xautologin']),
# ('/usr/share/calculate/doc', ['data/handbook-en.html', ('/usr/share/calculate/doc', ['data/handbook-en.html',
# 'data/handbook-ru.html']), 'data/handbook-ru.html']),
# ('/bin',['data/bashlogin'])] ('/bin',['data/bashlogin'])]
BUILD_MAN_PATH = "build/man" BUILD_MAN_PATH = "build/man"

Loading…
Cancel
Save