---
name: "rc.local"
section: "5"
platform: "linux"
package: "sysvinit"
version: "2.71-2"
release: "Debian 1.3 (Bo)"
platforms: ["linux"]
url: "https://new.carta.tech/rc.boot"
---

# rc.local(5)

directory for local or per-package boot scripts.

Part of [rc.boot(5)](/rc.boot/5.md).

## NAME

/etc/rc.boot - directory for local or per-package boot scripts.

## DESCRIPTION

At boot time the directory */etc/rc.boot* is scanned by the program [**run-parts**(8)](/run-parts/8.md). The scripts found that have valid filenames for the **run-parts** program will be run in lexical sort order of the filenames.

## EXAMPLES

If you want to run the hdparm program at boot time to set parameters of the IDE driver, you'd normally stick a line in the */etc/rc.local* file. On debian however this file does not exist. Instead, you put a script in the */etc/rc.boot* directory like this:

```
#! /bin/sh
echo "Running hdparm.."
hdparm -u 1
```

This script could be named *hdparm* and should have mode 0755.

## SEE ALSO

[run-parts(8)](/run-parts/8.md), [init(1)](/init/1.md).
