Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 - 1
#!/bin/sh
2
 
3
. /etc/tune-profiles/functions
4
 
5
EXT_PARTITIONS=$(mount | grep -E "type ext(3|4)" | cut -d" " -f1)
6
 
7
start() {
8
	set_disk_alpm medium_power
9
	set_disk_apm 128
10
	set_disk_spindown 6
11
 
12
	enable_usb_autosuspend
13
	disable_cd_polling
14
	disable_bluetooth
15
	enable_wifi_powersave
16
	disable_logs_syncing
17
 
18
	remount_partitions commit=600,noatime $EXT_PARTITIONS
19
	find /etc/ &> /dev/null
20
	sync
21
 
22
	return 0
23
}
24
 
25
stop() {
26
	set_disk_alpm max_power
27
	set_disk_apm 255
28
	set_disk_spindown 0
29
 
30
	disable_usb_autosuspend
31
	enable_bluetooth
32
	disable_wifi_powersave
33
	restore_logs_syncing
34
 
35
	remount_partitions commit=5 $EXT_PARTITIONS
36
 
37
	return 0
38
}
39
 
40
process $@