* Fixed problem when BASEDIR paths were given without a trailing '/'.
[linux_from_scratch.git] / bootscripts / contrib / new-boot-0.2 / sbin / init.d / runlevel.2 / depmod
blob63a4360581eeda6c0f7d64711efff6e706b74938
1 #!/bin/sh
3 # compute module dependencies
6 #locate and source functions script
7 source `PATH=$INIT_D/:/sbin/init.d:/etc/init.d:/etc/rc.d type -p functions`
9 case "$1" in
10 start)
11 #need to write dependency file
12 need $mounted_filesystems || exit_if_any_error
14 echo 'Computing kernel module dependencies...'
15 depmod -a
16 up_evaluate_retval || exit_if_any_error
18 stop)
21 exit 1
23 esac
25 exit 0