Subversion Repositories livecd

Rev

Rev 37 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37 Rev 38
Line 224... Line 224...
224
# $2 = LiveCD data dir (with directories /base, /modules, etc.)
224
# $2 = LiveCD data dir (with directories /base, /modules, etc.)
225
# $3 = destination folder, where images will be mounted to
225
# $3 = destination folder, where images will be mounted to
226
#
226
#
227
union_insert_modules()
227
union_insert_modules()
228
{
228
{
-
 
229
   PRINTK=`cat /proc/sys/kernel/printk`
-
 
230
   echo "0" >/proc/sys/kernel/printk
-
 
231
 
229
   list_modules $2 | while read MODULE; do
232
   list_modules $2 | while read MODULE; do
230
      echo " -> `basename $MODULE`"
233
      echo " -> `basename $MODULE`"
231
      union_insert_module $1 $MODULE $3
234
      union_insert_module $1 $MODULE $3
232
   done
235
   done
-
 
236
 
-
 
237
   echo "$PRINTK" >/proc/sys/kernel/printk
233
}
238
}
234
 
239
 
235
# Copy modules to RAM directory
240
# Copy modules to RAM directory
236
# $1 = data directory
241
# $1 = data directory
237
# $2 = target directory in RAM
242
# $2 = target directory in RAM